typst/tests/typ/func-font-properties.typ
Laurenz ba3d43f7b2 Refresh function call and dictionary syntax
- No colon between function name and arguments, just whitespace
- "Named" arguments (previously "keyword" arguments) use colon instead of equals sign
2020-12-27 20:45:20 +01:00

21 lines
401 B
XML

// Test configuring font properties.
[font "PT Sans", 10pt]
// Set same font size in three different ways.
[font 20pt][A]
[font 200%][A]
[font 15pt + 50%][A]
// Do nothing.
[font][Normal]
// Set style (is available).
[font style: italic][Italic]
// Set weight (is available).
[font weight: bold][Bold]
// Set stretch (not available, matching closest).
[font stretch: ultra-condensed][Condensed]