You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,36 @@ All notable changes for each version of this project will be documented in this
6
6
7
7
### New Features
8
8
9
+
-`IgxPdfExporterService`
10
+
- Added `customFont` property to `IgxPdfExporterOptions` for Unicode character support in PDF exports. By default, the PDF exporter uses Helvetica, which only supports basic Latin characters. When exporting data containing non-Latin characters (Cyrillic, Chinese, Japanese, Arabic, Hebrew, special symbols, etc.), you can now provide a custom TrueType font (TTF) with the required character glyphs.
11
+
12
+
```typescript
13
+
import { IgxPdfExporterService, IgxPdfExporterOptions } from 'igniteui-angular/grids/core';
14
+
import { NOTO_SANS_REGULAR, NOTO_SANS_BOLD } from './fonts/noto-sans';
const options = new IgxPdfExporterOptions('GridExport');
20
+
options.customFont = {
21
+
name: 'NotoSans',
22
+
data: NOTO_SANS_REGULAR, // Base64-encoded TTF font data
23
+
bold: {
24
+
name: 'NotoSans-Bold',
25
+
data: NOTO_SANS_BOLD // Optional: Base64-encoded bold TTF font data
26
+
}
27
+
};
28
+
29
+
this.pdfExporter.export(this.grid, options);
30
+
}
31
+
```
32
+
33
+
Key features:
34
+
- Supports any TrueType font (TTF) provided as Base64-encoded data
35
+
- Optional bold font variant for header styling
36
+
- Automatic fallback to Helvetica if custom font loading fails
37
+
- Works with all grid types (IgxGrid, IgxTreeGrid, IgxHierarchicalGrid, IgxPivotGrid)
38
+
9
39
-`IgxTooltipTarget`
10
40
- Added new properties:
11
41
- `showTriggers` - Which event triggers will show the tooltip. Expects a comma-separated string of different event triggers. Defaults to `pointerenter`.
0 commit comments