Font declarations for the renderer to load Google Fonts or fall back gracefully. Text nodes still carry their own font-family and font-weight — the fonts block makes those families resolvable.
fonts
tagfont declarationsFont declarations for the renderer to load Google Fonts or fall back gracefully. Text nodes still carry their own font-family and font-weight — the fonts block makes those families resolvable.
| Attr | Type | Description |
|---|---|---|
family | string | Font family name. |
source | google | system | unresolved | Where the font is resolved from. |
category | string | e.g. sans-serif, serif, monospace. |
weights | string | Space-separated numeric weights, e.g. 400 600 700. |
styles | string | normal italic. |
Example
<fonts> <font family="Inter" source="google" category="sans-serif" weights="400 500 600 700" styles="normal italic" /> </fonts>