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 declarations

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.

AttrTypeDescription
familystringFont family name.
sourcegoogle | system | unresolvedWhere the font is resolved from.
categorystringe.g. sans-serif, serif, monospace.
weightsstringSpace-separated numeric weights, e.g. 400 600 700.
stylesstringnormal italic.

Example

<fonts>
  <font family="Inter" source="google"
        category="sans-serif"
        weights="400 500 600 700" styles="normal italic" />
</fonts>