@formepdf/fonts-standard 0.28.0 → 0.30.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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -26,6 +26,10 @@ for (const font of standardFonts()) Font.register(font);
26
26
 
27
27
  If `pdfUa` is set and a standard font is used but this package is **not** registered, Forme emits the document but warns by name with the remedy (install and register `@formepdf/fonts-standard`) — never silently.
28
28
 
29
+ The embedded programs are subset to the characters the document uses.
30
+
31
+ To embed them in an ordinary document, with no PDF/UA or PDF/A claim, set `embedStandardFonts` (on `<Document>`, or in `@formepdf/html`'s options). The document then looks the same in every viewer, and layout does not change.
32
+
29
33
  ## Exports
30
34
 
31
35
  - `standardFonts(): FontSpec[]` — the 12 Liberation fonts (Sans/Serif/Mono × Regular/Bold/Italic/BoldItalic) as registrations with `Uint8Array` buffers. No file IO — works in Node, WASM, and the browser.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formepdf/fonts-standard",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "description": "Embeddable, metric-compatible replacements for the standard 14 PDF fonts (Liberation Sans/Serif/Mono, OFL) — for PDF/UA and PDF/A output",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",