mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
- No colon between function name and arguments, just whitespace - "Named" arguments (previously "keyword" arguments) use colon instead of equals sign
19 lines
428 B
XML
19 lines
428 B
XML
// Test font fallback.
|
||
|
||
// Source Sans Pro + Segoe UI Emoji.
|
||
Emoji: 🏀
|
||
|
||
// CMU Serif + Noto Emoji.
|
||
[font "CMU Serif", "Noto Emoji"][Emoji: 🏀]
|
||
|
||
// Class definitions.
|
||
[font math: ("CMU Serif", "Latin Modern Math", "Noto Emoji")]
|
||
[font math][Math: ∫ α + β ➗ 3]
|
||
|
||
// Class redefinition.
|
||
[font sans-serif: "Noto Emoji"]
|
||
[font sans-serif: ("Archivo", sans-serif)]
|
||
New sans-serif. 🚀
|
||
|
||
// TODO: Add tests for other scripts.
|