pdfnative 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +151 -39
- package/dist/index.cjs +4062 -776
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1107 -30
- package/dist/index.d.ts +1107 -30
- package/dist/index.js +4029 -777
- package/dist/index.js.map +1 -1
- package/dist/tools/build-emoji-font.js +1139 -0
- package/dist/worker/index.cjs +2084 -121
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.js +2084 -121
- package/dist/worker/index.js.map +1 -1
- package/fonts/noto-color-emoji-data.d.ts +28 -0
- package/fonts/noto-color-emoji-data.js +26 -0
- package/fonts/noto-ethiopic-data.d.ts +13 -0
- package/fonts/noto-ethiopic-data.js +64 -0
- package/fonts/noto-khmer-data.d.ts +13 -0
- package/fonts/noto-khmer-data.js +64 -0
- package/fonts/noto-myanmar-data.d.ts +13 -0
- package/fonts/noto-myanmar-data.js +64 -0
- package/fonts/noto-sinhala-data.d.ts +13 -0
- package/fonts/noto-sinhala-data.js +64 -0
- package/fonts/noto-telugu-data.d.ts +13 -0
- package/fonts/noto-telugu-data.js +64 -0
- package/fonts/noto-tibetan-data.d.ts +13 -0
- package/fonts/noto-tibetan-data.js +64 -0
- package/package.json +38 -7
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PRE-BUILT COLOUR-EMOJI FONT DATA — NotoColorEmoji-Regular (curated subset)
|
|
3
|
+
* ==========================================================================
|
|
4
|
+
* Generated by: scripts/build-color-emoji-data.ts
|
|
5
|
+
* Source: NotoColorEmoji-Regular.ttf (OFL-1.1)
|
|
6
|
+
* Colour glyphs: 221 (curated). COLR/CPAL → solid + linear + radial paints.
|
|
7
|
+
*
|
|
8
|
+
* Opt in:
|
|
9
|
+
* import { registerFont } from 'pdfnative';
|
|
10
|
+
* registerFont('emoji', () => import('pdfnative/fonts/noto-color-emoji-data.js'));
|
|
11
|
+
*
|
|
12
|
+
* DO NOT EDIT — regenerate with: npx tsx scripts/build-color-emoji-data.ts
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { FontData } from '../src/types/pdf-types.js';
|
|
16
|
+
|
|
17
|
+
export declare const metrics: FontData['metrics'];
|
|
18
|
+
export declare const fontName: string;
|
|
19
|
+
export declare const cmap: Record<number, number>;
|
|
20
|
+
export declare const defaultWidth: number;
|
|
21
|
+
export declare const widths: Record<number, number>;
|
|
22
|
+
export declare const pdfWidthArray: string;
|
|
23
|
+
export declare const gsub: Record<number, number>;
|
|
24
|
+
export declare const ligatures: null;
|
|
25
|
+
export declare const markAnchors: null;
|
|
26
|
+
export declare const mark2mark: null;
|
|
27
|
+
export declare const colorGlyphs: NonNullable<FontData['colorGlyphs']>;
|
|
28
|
+
export declare const ttfBase64: string;
|