diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-03-24 17:12:34 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-03-24 17:12:34 +0100 |
| commit | 73615f7e3ce23f2ea656d04ea9f96184f5ebdc0a (patch) | |
| tree | 7691b792e1e4b33469a72c40fc76854f1de0814e /tests/typ/text/complex.typ | |
| parent | 6720520ec06dd0718f81049b2b11e81664f7ef62 (diff) | |
Text shaping π
- Shapes text with rustybuzz
- Font fallback with family list
- Tofus are shown in the first font
Co-Authored-By: Martin <mhaug@live.de>
Diffstat (limited to 'tests/typ/text/complex.typ')
| -rw-r--r-- | tests/typ/text/complex.typ | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/typ/text/complex.typ b/tests/typ/text/complex.typ new file mode 100644 index 00000000..567a208d --- /dev/null +++ b/tests/typ/text/complex.typ @@ -0,0 +1,38 @@ +// Test complex text shaping. + +--- +// Test ligatures. + +// This should create an "fi" ligature. +Le fira + +// This should just shape nicely. +#font("Noto Sans Arabic") +Ω
ΩΨ΄ Ψ₯ΩΨ§ Ψ¨Ψ³Ω
Ψ§ΩΩΩ + +// This should form a three-member family. +#font("Twitter Color Emoji") +π©βπ©βπ¦ π€πΏ + +// These two shouldn't be affected by a zero-width joiner. +πβπ + +--- +// Test font fallback. + +#font("EB Garamond", "Noto Sans Arabic", "Twitter Color Emoji") + +// Font fallback for emoji. +AπB + +// Font fallback for entire text. +Ω
ΩΨ΄ Ψ₯ΩΨ§ Ψ¨Ψ³Ω
Ψ§ΩΩΩ + +// Font fallback in right-to-left text. +Ψ¨ππΨ³Ω
+ +// Multi-layer font fallback. +AΨ¨ππΨ³Ω
B + +// Tofus are rendered with the first font. +AπδΈζB |
