summaryrefslogtreecommitdiff
path: root/tests/typ/text/complex.typ
blob: 567a208d2aec6a5185265645ec371137ab49bf17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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