Interface: TemplateStyle
A reusable set of typographic and spacing properties applied to template
blocks through a TemplateStylesheet. Stylesheet values are merged
beneath each block's inline options, so inline options always win.
Note: align accepts the full TextAlign union; image and link
blocks ignore "justify" and treat it as "left".
Properties
| Property | Type | Description |
|---|---|---|
align? | TextAlign | Horizontal alignment for laid-out content. |
color? | ColorInput | Color used for drawing, text, or highlighting. |
direction? | TextDirection | Text direction used for shaping and layout. |
fallbackFonts? | PdfFont[] | Fallback fonts used when the primary font lacks a glyph. |
font? | PdfFont | Font used to render text. |
fontSize? | number | Font size in PDF points. |
kerning? | boolean | Whether kerning should be applied where supported. |
lineHeight? | number | Line height in PDF points. |
margin? | FlowMarginShorthand | CSS-like margin shorthand in PDF points. |
marginBottom? | number | Bottom margin in PDF points. |
marginLeft? | number | Left margin in PDF points. |
marginRight? | number | Right margin in PDF points. |
marginTop? | number | Top margin in PDF points. |
writingMode? | "horizontal" | "vertical" | Text writing mode. |