@openpresentation/opf-render 0.10.0 → 0.11.1
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 +67 -7
- package/dist/font-compatibility.js +40 -1
- package/dist/font-manifest.js +1285 -12
- package/dist/font-policy.js +91 -36
- package/dist/fonts-browser.d.ts +56 -2
- package/dist/fonts-browser.js +194 -22
- package/dist/fonts-node.d.ts +53 -9
- package/dist/fonts-node.js +121 -23
- package/dist/fonts.d.ts +20 -5
- package/dist/fonts.js +63 -27
- package/dist/index.d.ts +11 -0
- package/dist/lazy-font-list.js +23 -0
- package/dist/lazy-fonts.js +52 -0
- package/dist/raster.js +3 -1
- package/dist/script-font-pack.js +140 -1
- package/dist/script-fonts.js +161 -24
- package/dist/svg.d.ts +11 -0
- package/dist/svg.js +97 -5
- package/fonts/anton/Anton-Regular.ttf +0 -0
- package/fonts/anton/OFL.txt +93 -0
- package/fonts/anton/PROVENANCE.json +21 -0
- package/fonts/archivo-narrow/ArchivoNarrow_400Regular.ttf +0 -0
- package/fonts/archivo-narrow/ArchivoNarrow_400Regular_Italic.ttf +0 -0
- package/fonts/archivo-narrow/ArchivoNarrow_700Bold.ttf +0 -0
- package/fonts/archivo-narrow/ArchivoNarrow_700Bold_Italic.ttf +0 -0
- package/fonts/archivo-narrow/OFL.txt +93 -0
- package/fonts/archivo-narrow/PROVENANCE.json +47 -0
- package/fonts/barlow/Barlow-Bold.ttf +0 -0
- package/fonts/barlow/Barlow-BoldItalic.ttf +0 -0
- package/fonts/barlow/Barlow-Italic.ttf +0 -0
- package/fonts/barlow/Barlow-Regular.ttf +0 -0
- package/fonts/barlow/OFL.txt +93 -0
- package/fonts/barlow/PROVENANCE.json +45 -0
- package/fonts/bebas-neue/BebasNeue_400Regular.ttf +0 -0
- package/fonts/bebas-neue/OFL.txt +93 -0
- package/fonts/bebas-neue/PROVENANCE.json +23 -0
- package/fonts/bitter/Bitter_400Regular.ttf +0 -0
- package/fonts/bitter/Bitter_400Regular_Italic.ttf +0 -0
- package/fonts/bitter/Bitter_700Bold.ttf +0 -0
- package/fonts/bitter/Bitter_700Bold_Italic.ttf +0 -0
- package/fonts/bitter/OFL.txt +94 -0
- package/fonts/bitter/PROVENANCE.json +49 -0
- package/fonts/carlito/Carlito-Bold.ttf +0 -0
- package/fonts/carlito/Carlito-BoldItalic.ttf +0 -0
- package/fonts/carlito/Carlito-Italic.ttf +0 -0
- package/fonts/carlito/Carlito-Regular.ttf +0 -0
- package/fonts/carlito/OFL.txt +94 -0
- package/fonts/eb-garamond/EBGaramond_400Regular.ttf +0 -0
- package/fonts/eb-garamond/EBGaramond_400Regular_Italic.ttf +0 -0
- package/fonts/eb-garamond/EBGaramond_700Bold.ttf +0 -0
- package/fonts/eb-garamond/EBGaramond_700Bold_Italic.ttf +0 -0
- package/fonts/eb-garamond/OFL.txt +93 -0
- package/fonts/eb-garamond/PROVENANCE.json +47 -0
- package/fonts/figtree/Figtree_400Regular.ttf +0 -0
- package/fonts/figtree/Figtree_400Regular_Italic.ttf +0 -0
- package/fonts/figtree/Figtree_700Bold.ttf +0 -0
- package/fonts/figtree/Figtree_700Bold_Italic.ttf +0 -0
- package/fonts/figtree/OFL.txt +93 -0
- package/fonts/figtree/PROVENANCE.json +47 -0
- package/fonts/intos/Intos-Bold.ttf +0 -0
- package/fonts/intos/Intos-BoldItalic.ttf +0 -0
- package/fonts/intos/Intos-Italic.ttf +0 -0
- package/fonts/intos/Intos-Regular.ttf +0 -0
- package/fonts/intos/IntosDisplay-Bold.ttf +0 -0
- package/fonts/intos/IntosDisplay-BoldItalic.ttf +0 -0
- package/fonts/intos/IntosDisplay-Italic.ttf +0 -0
- package/fonts/intos/IntosDisplay-Regular.ttf +0 -0
- package/fonts/intos/IntosNarrow-Bold.ttf +0 -0
- package/fonts/intos/IntosNarrow-BoldItalic.ttf +0 -0
- package/fonts/intos/IntosNarrow-Italic.ttf +0 -0
- package/fonts/intos/IntosNarrow-Regular.ttf +0 -0
- package/fonts/intos/IntosSerif-Bold.ttf +0 -0
- package/fonts/intos/IntosSerif-BoldItalic.ttf +0 -0
- package/fonts/intos/IntosSerif-Italic.ttf +0 -0
- package/fonts/intos/IntosSerif-Regular.ttf +0 -0
- package/fonts/intos/NOTICE.md +18 -0
- package/fonts/intos/OFL.txt +94 -0
- package/fonts/intos/PROVENANCE.json +144 -0
- package/fonts/libre-caslon-text/LibreCaslonText_400Regular.ttf +0 -0
- package/fonts/libre-caslon-text/LibreCaslonText_400Regular_Italic.ttf +0 -0
- package/fonts/libre-caslon-text/LibreCaslonText_700Bold.ttf +0 -0
- package/fonts/libre-caslon-text/OFL.txt +93 -0
- package/fonts/libre-caslon-text/PROVENANCE.json +39 -0
- package/fonts/lora/Lora-Bold.ttf +0 -0
- package/fonts/lora/Lora-BoldItalic.ttf +0 -0
- package/fonts/lora/Lora-Italic.ttf +0 -0
- package/fonts/lora/Lora-Regular.ttf +0 -0
- package/fonts/lora/OFL.txt +93 -0
- package/fonts/lora/PROVENANCE.json +48 -0
- package/fonts/merriweather-sans/MerriweatherSans-Bold.ttf +0 -0
- package/fonts/merriweather-sans/MerriweatherSans-BoldItalic.ttf +0 -0
- package/fonts/merriweather-sans/MerriweatherSans-Italic.ttf +0 -0
- package/fonts/merriweather-sans/MerriweatherSans-Regular.ttf +0 -0
- package/fonts/merriweather-sans/OFL.txt +96 -0
- package/fonts/merriweather-sans/PROVENANCE.json +48 -0
- package/fonts/montserrat/Montserrat_400Regular.ttf +0 -0
- package/fonts/montserrat/Montserrat_400Regular_Italic.ttf +0 -0
- package/fonts/montserrat/Montserrat_700Bold.ttf +0 -0
- package/fonts/montserrat/Montserrat_700Bold_Italic.ttf +0 -0
- package/fonts/montserrat/Montserrat_900Black.ttf +0 -0
- package/fonts/montserrat/OFL.txt +93 -0
- package/fonts/montserrat/PROVENANCE.json +55 -0
- package/fonts/open-sans/OFL.txt +92 -0
- package/fonts/open-sans/OpenSans_400Regular.ttf +0 -0
- package/fonts/open-sans/OpenSans_400Regular_Italic.ttf +0 -0
- package/fonts/open-sans/OpenSans_700Bold.ttf +0 -0
- package/fonts/open-sans/OpenSans_700Bold_Italic.ttf +0 -0
- package/fonts/open-sans/PROVENANCE.json +47 -0
- package/fonts/poppins/OFL.txt +93 -0
- package/fonts/poppins/PROVENANCE.json +47 -0
- package/fonts/poppins/Poppins_400Regular.ttf +0 -0
- package/fonts/poppins/Poppins_400Regular_Italic.ttf +0 -0
- package/fonts/poppins/Poppins_700Bold.ttf +0 -0
- package/fonts/poppins/Poppins_700Bold_Italic.ttf +0 -0
- package/fonts/pt-serif/OFL.txt +93 -0
- package/fonts/pt-serif/PROVENANCE.json +50 -0
- package/fonts/pt-serif/PT_Serif-Web-Bold.ttf +0 -0
- package/fonts/pt-serif/PT_Serif-Web-BoldItalic.ttf +0 -0
- package/fonts/pt-serif/PT_Serif-Web-Italic.ttf +0 -0
- package/fonts/pt-serif/PT_Serif-Web-Regular.ttf +0 -0
- package/fonts/red-hat-display/OFL.txt +93 -0
- package/fonts/red-hat-display/PROVENANCE.json +79 -0
- package/fonts/red-hat-display/RedHatDisplay_300Light.ttf +0 -0
- package/fonts/red-hat-display/RedHatDisplay_300Light_Italic.ttf +0 -0
- package/fonts/red-hat-display/RedHatDisplay_400Regular.ttf +0 -0
- package/fonts/red-hat-display/RedHatDisplay_400Regular_Italic.ttf +0 -0
- package/fonts/red-hat-display/RedHatDisplay_600SemiBold.ttf +0 -0
- package/fonts/red-hat-display/RedHatDisplay_600SemiBold_Italic.ttf +0 -0
- package/fonts/red-hat-display/RedHatDisplay_700Bold.ttf +0 -0
- package/fonts/red-hat-display/RedHatDisplay_700Bold_Italic.ttf +0 -0
- package/fonts/red-hat-text/OFL.txt +93 -0
- package/fonts/red-hat-text/PROVENANCE.json +47 -0
- package/fonts/red-hat-text/RedHatText_400Regular.ttf +0 -0
- package/fonts/red-hat-text/RedHatText_400Regular_Italic.ttf +0 -0
- package/fonts/red-hat-text/RedHatText_700Bold.ttf +0 -0
- package/fonts/red-hat-text/RedHatText_700Bold_Italic.ttf +0 -0
- package/fonts/source-sans-3/OFL.txt +93 -0
- package/fonts/source-sans-3/PROVENANCE.json +49 -0
- package/fonts/source-sans-3/SourceSans3-Bold.ttf +0 -0
- package/fonts/source-sans-3/SourceSans3-BoldIt.ttf +0 -0
- package/fonts/source-sans-3/SourceSans3-It.ttf +0 -0
- package/fonts/source-sans-3/SourceSans3-Regular.ttf +0 -0
- package/fonts/work-sans/OFL.txt +93 -0
- package/fonts/work-sans/PROVENANCE.json +47 -0
- package/fonts/work-sans/WorkSans_400Regular.ttf +0 -0
- package/fonts/work-sans/WorkSans_400Regular_Italic.ttf +0 -0
- package/fonts/work-sans/WorkSans_700Bold.ttf +0 -0
- package/fonts/work-sans/WorkSans_700Bold_Italic.ttf +0 -0
- package/package.json +11 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpresentation/opf-render",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Deterministic local OPF renderer for SVG, PNG, and PDF output.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
+
"fonts",
|
|
24
25
|
"README.md",
|
|
25
26
|
"LICENSE"
|
|
26
27
|
],
|
|
@@ -55,9 +56,11 @@
|
|
|
55
56
|
"sideEffects": false,
|
|
56
57
|
"scripts": {
|
|
57
58
|
"build": "node scripts/build.mjs",
|
|
58
|
-
"typecheck": "node --check src/index.js && node --check scripts/build.mjs && node --check scripts/validate-package.mjs && node --check test/smoke.mjs && node --check test/golden.mjs && node --check src/fonts.js && node --check src/script-fonts.js && node --check src/script-font-pack.js && node --check test/script-fonts.mjs && node --check test/script-fonts-browser.mjs && node --check src/fonts-node.js && node --check src/font-compatibility.js && node --check test/office-fonts.mjs && node --check test/font-policy.mjs && node --check src/font-policy.js && node --check scripts/update-font-policy.mjs && node --check src/fonts-browser.js && node --check test/fonts-browser.mjs && node --check src/svg.js && node --check src/raster.js && node --check src/raster-images.js && node --check test/webp.mjs && node --check test/jpeg-orientation.mjs && node --check scripts/build-browser-check.mjs && node --check test/jpeg-browser.js && node --check test/rich-table.mjs && node --check test/rich-tab.mjs && node --check test/rich-tab-browser.mjs && node --check test/rich-tab-estimated-browser.mjs && node --check test/styled-table.mjs && node --check test/color-references.mjs && node --check test/default-font-scheme.mjs && node --check test/chart-colors.mjs && node --check test/chart-axis.mjs && node --check test/image-placeholders.mjs && node --check test/image-placeholders-browser.mjs && node --check test/accepted-text.mjs && node --check test/accepted-text-fixtures.mjs && node --check test/accepted-text-browser.mjs && node --check test/rich-spacing-browser.mjs && node --check test/rich-flow-browser.mjs && node --check test/rich-flow-review-sheets.mjs && node --check test/furniture.mjs && node --check test/socials.mjs && node --check test/slide-image.mjs && node --check test/slide-image-treatments.mjs && node --check test/item-alignment.mjs",
|
|
59
|
+
"typecheck": "node --check src/index.js && node --check scripts/build.mjs && node --check scripts/validate-package.mjs && node --check test/smoke.mjs && node --check test/golden.mjs && node --check src/fonts.js && node --check src/script-fonts.js && node --check src/script-font-pack.js && node --check test/script-fonts.mjs && node --check test/glyph-fallback.mjs && node --check test/script-fonts-browser.mjs && node --check test/script-fonts-auto.mjs && node --check test/script-fonts-auto-robust.mjs && node --check test/script-fonts-auto-browser.mjs && node --check src/fonts-node.js && node --check src/font-compatibility.js && node --check test/office-fonts.mjs && node --check test/font-policy.mjs && node --check test/open-fonts.mjs && node --check test/aptos-preview.mjs && node --check test/aptos-preview-browser.mjs && node --check test/lazy-fonts.mjs && node --check test/lazy-fonts-browser.mjs && node --check src/font-policy.js && node --check scripts/update-font-policy.mjs && node --check src/fonts-browser.js && node --check test/fonts-browser.mjs && node --check src/svg.js && node --check src/raster.js && node --check src/raster-images.js && node --check test/webp.mjs && node --check test/jpeg-orientation.mjs && node --check scripts/build-browser-check.mjs && node --check test/jpeg-browser.js && node --check test/rich-table.mjs && node --check test/rich-tab.mjs && node --check test/rich-tab-browser.mjs && node --check test/rich-tab-estimated-browser.mjs && node --check test/styled-table.mjs && node --check test/color-references.mjs && node --check test/default-font-scheme.mjs && node --check test/chart-colors.mjs && node --check test/chart-axis.mjs && node --check test/image-placeholders.mjs && node --check test/image-placeholders-browser.mjs && node --check test/accepted-text.mjs && node --check test/accepted-text-fixtures.mjs && node --check test/accepted-text-browser.mjs && node --check test/rich-spacing-browser.mjs && node --check test/rich-flow-browser.mjs && node --check test/rich-flow-review-sheets.mjs && node --check test/furniture.mjs && node --check test/socials.mjs && node --check test/slide-image.mjs && node --check test/slide-image-treatments.mjs && node --check test/item-alignment.mjs && node --check test/cover-centering.mjs && node --check scripts/font-license.mjs && node --check test/font-licenses.mjs && node --check scripts/check-font-hotlinks.mjs && node --check scripts/check-font-hotlinks.test.mjs",
|
|
59
60
|
"validate": "node scripts/validate-package.mjs",
|
|
60
|
-
"test": "npm run build && node test/furniture.mjs && node test/socials.mjs && node test/font-outlines.mjs && node test/accepted-text.mjs && node test/image-placeholders.mjs && node test/slide-image.mjs && node test/slide-image-treatments.mjs && node test/chart-colors.mjs && node test/chart-axis.mjs && node test/smoke.mjs && node test/webp.mjs && node test/jpeg-orientation.mjs && node test/fonts.mjs && node test/office-fonts.mjs && node test/font-policy.mjs && node test/timeline.mjs && node test/quote-footer.mjs && node test/shared-quote.mjs && node test/rich-trace.mjs && node test/rich-table.mjs && node test/rich-tab.mjs && node test/color-references.mjs && node test/default-font-scheme.mjs && node test/golden-gate.mjs && node test/golden.mjs && node test/fonts-browser.mjs && node test/script-fonts.mjs && node test/design-preview.mjs && node test/item-alignment.mjs && npm run build:browser-check && npm run test:styled-table",
|
|
61
|
+
"test": "npm run build && npm run check:fonts && node test/furniture.mjs && node test/socials.mjs && node test/font-outlines.mjs && node test/accepted-text.mjs && node test/image-placeholders.mjs && node test/slide-image.mjs && node test/slide-image-treatments.mjs && node test/chart-colors.mjs && node test/chart-axis.mjs && node test/smoke.mjs && node test/webp.mjs && node test/jpeg-orientation.mjs && node test/fonts.mjs && node test/office-fonts.mjs && node test/font-policy.mjs && node test/open-fonts.mjs && node test/aptos-preview.mjs && node test/lazy-fonts.mjs && node test/timeline.mjs && node test/quote-footer.mjs && node test/shared-quote.mjs && node test/rich-trace.mjs && node test/rich-table.mjs && node test/rich-tab.mjs && node test/color-references.mjs && node test/default-font-scheme.mjs && node test/golden-gate.mjs && node test/golden.mjs && node test/fonts-browser.mjs && node test/script-fonts.mjs && node test/glyph-fallback.mjs && node test/script-fonts-auto.mjs && node test/script-fonts-auto-robust.mjs && node test/design-preview.mjs && node test/item-alignment.mjs && node test/cover-centering.mjs && npm run build:browser-check && npm run test:styled-table",
|
|
62
|
+
"check:fonts": "node test/font-licenses.mjs && npm run check:font-hotlinks",
|
|
63
|
+
"check:font-hotlinks": "node --test scripts/check-font-hotlinks.test.mjs && node scripts/check-font-hotlinks.mjs",
|
|
61
64
|
"test:golden": "npm run build && node test/golden.mjs",
|
|
62
65
|
"test:packed": "node test/packed-install.mjs",
|
|
63
66
|
"test:browser": "npm run build:browser-check && node test/browser-check.mjs && node test/rich-tab-browser.mjs && node test/rich-tab-estimated-browser.mjs",
|
|
@@ -73,7 +76,10 @@
|
|
|
73
76
|
"test:font-preparation-browser": "node test/font-preparation-browser.mjs artifacts/font-preparation-browser.json",
|
|
74
77
|
"test:font-variants": "node test/font-variants.mjs",
|
|
75
78
|
"test:font-variants-browser": "node test/font-variants-browser.mjs",
|
|
79
|
+
"test:aptos-preview-browser": "node test/aptos-preview-browser.mjs artifacts/aptos-preview-browser.json",
|
|
80
|
+
"test:lazy-fonts-browser": "node test/lazy-fonts-browser.mjs artifacts/lazy-fonts",
|
|
76
81
|
"test:script-fonts-browser": "node test/script-fonts-browser.mjs artifacts/script-fonts-browser.json",
|
|
82
|
+
"test:script-fonts-auto-browser": "node test/script-fonts-auto-browser.mjs artifacts/script-fonts-auto",
|
|
77
83
|
"test:text": "node test/font-outlines.mjs && node test/accepted-text.mjs",
|
|
78
84
|
"test:text-browser": "node test/accepted-text-browser.mjs",
|
|
79
85
|
"test:rich-spacing-browser": "node test/rich-spacing-browser.mjs",
|
|
@@ -83,13 +89,13 @@
|
|
|
83
89
|
"dependencies": {
|
|
84
90
|
"@expo-google-fonts/arimo": "0.4.3",
|
|
85
91
|
"@expo-google-fonts/caladea": "0.4.2",
|
|
86
|
-
"@expo-google-fonts/carlito": "0.4.1",
|
|
87
92
|
"@expo-google-fonts/cousine": "0.4.3",
|
|
88
93
|
"@expo-google-fonts/gelasio": "0.4.1",
|
|
94
|
+
"@expo-google-fonts/noto-sans": "0.4.2",
|
|
89
95
|
"@expo-google-fonts/roboto": "0.4.3",
|
|
90
96
|
"@expo-google-fonts/roboto-mono": "0.4.2",
|
|
91
97
|
"@expo-google-fonts/tinos": "0.4.2",
|
|
92
|
-
"@openpresentation/opf": "^0.11.
|
|
98
|
+
"@openpresentation/opf": "^0.11.2",
|
|
93
99
|
"@resvg/resvg-js": "^2.6.2",
|
|
94
100
|
"fontkit": "^2.0.4",
|
|
95
101
|
"pdf-lib": "^1.17.1",
|
|
@@ -98,7 +104,6 @@
|
|
|
98
104
|
"peerDependencies": {
|
|
99
105
|
"@expo-google-fonts/noto-naskh-arabic": "0.4.5",
|
|
100
106
|
"@expo-google-fonts/noto-nastaliq-urdu": "0.4.2",
|
|
101
|
-
"@expo-google-fonts/noto-sans": "0.4.2",
|
|
102
107
|
"@expo-google-fonts/noto-sans-arabic": "0.4.3",
|
|
103
108
|
"@expo-google-fonts/noto-sans-armenian": "0.4.2",
|
|
104
109
|
"@expo-google-fonts/noto-sans-bengali": "0.4.4",
|
|
@@ -135,9 +140,6 @@
|
|
|
135
140
|
"@expo-google-fonts/noto-nastaliq-urdu": {
|
|
136
141
|
"optional": true
|
|
137
142
|
},
|
|
138
|
-
"@expo-google-fonts/noto-sans": {
|
|
139
|
-
"optional": true
|
|
140
|
-
},
|
|
141
143
|
"@expo-google-fonts/noto-sans-arabic": {
|
|
142
144
|
"optional": true
|
|
143
145
|
},
|
|
@@ -226,7 +228,6 @@
|
|
|
226
228
|
"devDependencies": {
|
|
227
229
|
"@expo-google-fonts/noto-naskh-arabic": "0.4.5",
|
|
228
230
|
"@expo-google-fonts/noto-nastaliq-urdu": "0.4.2",
|
|
229
|
-
"@expo-google-fonts/noto-sans": "0.4.2",
|
|
230
231
|
"@expo-google-fonts/noto-sans-arabic": "0.4.3",
|
|
231
232
|
"@expo-google-fonts/noto-sans-armenian": "0.4.2",
|
|
232
233
|
"@expo-google-fonts/noto-sans-bengali": "0.4.4",
|