@broadpaper/core 0.3.0 → 0.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -318,9 +318,20 @@ interface PageContext {
318
318
  * Brand theme supplied by the host. A template references theme values via
319
319
  * tokens (`$colors.primary`) so one template renders under any brand.
320
320
  */
321
+ /**
322
+ * A font, declared once for the canvas, the designer's pickers and the PDF.
323
+ *
324
+ * Include a TrueType or OpenType file among the sources: the browser reads any
325
+ * format, but the browserless PDF engine reads only those two, and a face with
326
+ * nothing else is drawn in a standard face in the file (with a warning saying so).
327
+ */
321
328
  interface ThemeFontFace {
322
329
  family: string;
323
- /** URL(s) to the font file(s). `data:` URLs are supported for fully offline rendering. */
330
+ /**
331
+ * URL(s) to the font file(s), in order of preference, as `@font-face` lists them.
332
+ * `data:` URLs are supported for fully offline rendering. The PDF engine takes the
333
+ * first TrueType or OpenType one and skips WOFF and WOFF2.
334
+ */
324
335
  src: string | string[];
325
336
  weight?: number | string;
326
337
  style?: "normal" | "italic";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broadpaper/core",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "BroadPaper core: document model, expression language, theming, resolver, paginator, editor store. Framework-free.",
5
5
  "keywords": [
6
6
  "pdf",