diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/library/font.typ | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/typ/library/font.typ b/tests/typ/library/font.typ index 3e818f19..13f71125 100644 --- a/tests/typ/library/font.typ +++ b/tests/typ/library/font.typ @@ -49,6 +49,13 @@ Emoji: 🐪, 🌋, 🏞 #try(x-height, baseline) --- +// Test class definitions. +#font(sans-serif: "PT Sans") +#font(sans-serif)[Sans-serif.] \ +#font(monospace)[Monospace.] \ +#font(monospace, monospace: ("Nope", "Latin Modern Math"))[Math.] \ + +--- // Ref: false // Error: 7-12 unexpected argument @@ -56,7 +63,7 @@ Emoji: 🐪, 🌋, 🏞 // Error: 3:14-3:18 expected font style, found font weight // Error: 2:28-2:34 expected font weight, found string -// Error: 1:43-1:44 expected font family or array of font families, found integer +// Error: 1:43-1:44 expected string or array of strings, found integer #font(style: bold, weight: "thin", serif: 0) // Warning: 15-19 should be between 100 and 900 |
