typst/tests/typ/func-font-fallback.typ
Laurenz 1c40dc42e7 Dynamic values, Types, Arrays, and Dictionaries 🚀
- Identifiers are now evaluated as variables instead of being plain values
- Constants like `left` or `bold` are stored as dynamic values containing the respective rust types
- We now distinguish between arrays and dictionaries to make things more intuitive (at the cost of a bit more complex parsing)
- Spans were removed from collections (arrays, dictionaries), function arguments still have spans for the top-level values to enable good diagnostics
2021-01-02 19:37:10 +01:00

21 lines
408 B
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Test font fallback.
// Source Sans Pro + Segoe UI Emoji.
Emoji: 🏀
// CMU Serif + Noto Emoji.
[font "CMU Serif", "Noto Emoji"][
Emoji: 🏀
]
// Class definitions.
[font serif: ("CMU Serif", "Latin Modern Math", "Noto Emoji")]
[font serif][
Math: ∫ α + β ➗ 3
]
// Class definition reused.
[font sans-serif: "Noto Emoji"]
[font sans-serif: ("Archivo", sans-serif)]
New sans-serif. 🚀