Fonts reference¶
YMPrint bundles a set of font families so your documents render identically on any
machine — no system font installation required. Reference a family by name in
_style.
Using a font¶
_style:
body:
font: NotoSans
headings:
font: AppleGaramond
The name is the family name (case-sensitive). Each bundled family ships with regular, bold, italic, and bold-italic variants, so bold and italic inline formatting render correctly.
Bundled families¶
Family |
Style |
Good for |
|---|---|---|
|
Serif |
Elegant headings and body text. |
|
Sans-serif |
A robust, wide-coverage default. |
|
Sans-serif (condensed) |
Fitting more text per line. |
|
Monospace |
Code and tabular figures (used for inline |
|
Serif |
Long-form body text. |
|
Serif (condensed) |
Dense serif layouts. |
|
Sans-serif |
Clean, modern UI-style text. |
|
Sans-serif (geometric) |
Strong, contemporary headings. |
|
Sans-serif |
Broad language coverage. |
|
Serif |
Broad language coverage, serif. |
|
Serif (display) |
High-contrast display headings. |
|
Sans-serif (geometric) |
Friendly, rounded headings. |
|
Sans-serif |
Neutral, highly legible body text. |
Standard PDF fonts¶
The built-in defaults also use the standard PDF core fonts such as Helvetica, which are
always available. You can name them directly:
_style:
body:
font: Helvetica
Inline code font¶
Inline `code` spans always render in DejaVuSansMono on a light-grey background,
independent of your body font, so code is always visually distinct.