Skip to main content
Six variable fonts are bundled and registered automatically. Use them by name in font_family.

Weights

font_weight selects a real weight by instancing the variable font at build time. Names map to the usual axis values, and numbers pass straight through.
Markdown **bold** and the strong inline node also produce a real bold weight. See Inline content.
The bundled fonts are upright only, with no italic axis, so em and *italic* render the same glyphs as regular text. Use strong, **bold**, or a heavier font_weight for emphasis that is visible.

Custom variable fonts

Load a custom variable font with load_font and pass variable: true to enable weight instancing. Then use the registered name in font_family.