46 lines
822 B
Plaintext
46 lines
822 B
Plaintext
// Test complex text shaping.
|
||
|
||
---
|
||
// Test ligatures.
|
||
|
||
// This should create an "fi" ligature.
|
||
Le fira
|
||
|
||
// This should just shape nicely.
|
||
#set text("Noto Sans Arabic")
|
||
دع النص يمطر عليك
|
||
|
||
// This should form a three-member family.
|
||
#set text("Twitter Color Emoji")
|
||
👩👩👦 🤚🏿
|
||
|
||
// These two shouldn't be affected by a zero-width joiner.
|
||
🏞🌋
|
||
|
||
---
|
||
// Test font fallback.
|
||
|
||
#set text(sans-serif, "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
|
||
|
||
---
|
||
// Test reshaping.
|
||
|
||
#set text("Noto Serif Hebrew")
|
||
#set par(lang: "he")
|
||
ס \ טֶ
|