diff options
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 |
