pdfnative 1.0.4 → 1.1.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 +105 -14
- package/dist/index.cjs +778 -258
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +146 -4
- package/dist/index.d.ts +146 -4
- package/dist/index.js +772 -259
- package/dist/index.js.map +1 -1
- package/dist/worker/index.cjs +423 -187
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.js +423 -187
- package/dist/worker/index.js.map +1 -1
- package/fonts/noto-emoji-data.d.ts +27 -0
- package/fonts/noto-emoji-data.js +64 -0
- package/fonts/noto-sans-data.d.ts +22 -0
- package/fonts/noto-sans-data.js +64 -0
- package/package.json +2 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated font data module — type declarations only (DO NOT EDIT)
|
|
2
|
+
// Source: tools/build-font-data.cjs — regenerate with build script
|
|
3
|
+
//
|
|
4
|
+
// Noto Sans VF — Latin OFL-1.1 font intended for PDF/A Latin embedding.
|
|
5
|
+
// Use this module when generating PDF/A documents (`tagged: 'pdfa1b' | 'pdfa2b'
|
|
6
|
+
// | 'pdfa2u' | 'pdfa3b'`) where the 14 standard fonts are not embedded and
|
|
7
|
+
// therefore not strictly conforming. Wire via `registerFont('latin', notoSansData)`
|
|
8
|
+
// and pass the entry through `PdfParams.fontEntries`.
|
|
9
|
+
//
|
|
10
|
+
// License: SIL Open Font License 1.1 (see fonts/LICENSE).
|
|
11
|
+
// @since 1.1.0
|
|
12
|
+
export declare const metrics: { unitsPerEm: number; ascent: number; descent: number; capHeight: number; stemV: number; bbox: number[]; defaultWidth: number; numGlyphs: number; };
|
|
13
|
+
export declare const fontName: string;
|
|
14
|
+
export declare const cmap: Record<number, number>;
|
|
15
|
+
export declare const defaultWidth: number;
|
|
16
|
+
export declare const widths: Record<number, number>;
|
|
17
|
+
export declare const gsub: Record<number, number>;
|
|
18
|
+
export declare const ligatures: Record<number, number[][]>;
|
|
19
|
+
export declare const markAnchors: Record<number, unknown>;
|
|
20
|
+
export declare const mark2mark: Record<string, unknown>;
|
|
21
|
+
export declare const pdfWidthArray: string;
|
|
22
|
+
export declare const ttfBase64: string;
|