font
.font main:{String? = null}
heading:{String? = null}
code:{String? = null}
size:{Size? = null}
-> Void
Content copied to clipboard
Updates the global font configuration of the document.
Font families can be loaded from any of the following sources:
From file (e.g.
path/to/font.ttf
)From URL (e.g.
https://example.com/font.ttf
)From system fonts (e.g.
Arial
,Times New Roman
)From Google Fonts (e.g.
GoogleFonts:Roboto
).
Local and remote font resources are processed by the media storage. This means, for instance, HTML output will carry local fonts into the output directory for increased portability.
Parameters
size
- Optional
- Likely named
main font size of the text on each page. Other elements, such as headings, will scale accordingly