diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/font.png | bin | 21435 -> 22712 bytes | |||
| -rw-r--r-- | tests/typ/text/font.typ | 19 |
2 files changed, 12 insertions, 7 deletions
diff --git a/tests/ref/text/font.png b/tests/ref/text/font.png Binary files differindex 44183b3a..b8e0775a 100644 --- a/tests/ref/text/font.png +++ b/tests/ref/text/font.png diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ index fbb999f8..ecc07886 100644 --- a/tests/typ/text/font.typ +++ b/tests/typ/text/font.typ @@ -33,6 +33,18 @@ Emoji: 🐪, 🌋, 🏞 This is [#font(fill: rgb("FA644B")) way more] colorful. ] +// Disable font fallback beyond the user-specified list. +// Without disabling, Latin Modern Math would come to the rescue. +#font("PT Sans", "Twitter Color Emoji", fallback: false) +2π = 𝛼 + 𝛽. ✅ + +--- +// Test class definitions. +#font(sans-serif: "PT Sans") +[#font(family: sans-serif) Sans-serif.] \ +[#font(monospace) Monospace.] \ +[#font(monospace, monospace: ("Nope", "Latin Modern Math")) Math.] + --- // Test top and bottom edge. @@ -48,13 +60,6 @@ Emoji: 🐪, 🌋, 🏞 #try(x-height, baseline) --- -// Test class definitions. -#font(sans-serif: "PT Sans") -[#font(family: sans-serif) Sans-serif.] \ -[#font(monospace) Monospace.] \ -[#font(monospace, monospace: ("Nope", "Latin Modern Math")) Math.] - ---- // Error: 7-12 unexpected argument #font(false) |
