diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/suite/layout/inline/shaping.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/suite/layout/inline/shaping.typ')
| -rw-r--r-- | tests/suite/layout/inline/shaping.typ | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/suite/layout/inline/shaping.typ b/tests/suite/layout/inline/shaping.typ new file mode 100644 index 00000000..ec93eb47 --- /dev/null +++ b/tests/suite/layout/inline/shaping.typ @@ -0,0 +1,65 @@ +// Test shaping quirks. + +--- shaping-script-separation --- +// Test separation by script. +#set text(font: ("Linux Libertine", "IBM Plex Sans Devanagari")) +ABCअपार्टमेंट + +// This is how it should look like. +अपार्टमेंट + +// This (without the spaces) is how it would look +// if we didn't separate by script. +अ पा र् ट में ट + +--- shaping-forced-script-font-feature-inhibited --- +// A forced `latn` script inhibits Devanagari font features. +#set text(font: ("Linux Libertine", "IBM Plex Sans Devanagari"), script: "latn") +ABCअपार्टमेंट + +--- shaping-forced-script-font-feature-enabled --- +// A forced `deva` script enables Devanagari font features. +#set text(font: ("Linux Libertine", "IBM Plex Sans Devanagari"), script: "deva") +ABCअपार्टमेंट + +--- issue-rtl-safe-to-break-panic --- +// Test that RTL safe-to-break doesn't panic even though newline +// doesn't exist in shaping output. +#set text(dir: rtl, font: "Noto Serif Hebrew") +\ ט + +--- shaping-font-fallback --- +// Font fallback for emoji. +A😀B + +// Font fallback for entire text. +دع النص يمطر عليك + +// Font fallback in right-to-left text. +ب🐈😀سم + +// Multi-layer font fallback. +Aب😀🏞سمB + +// Font fallback with composed emojis and multiple fonts. +01️⃣2 + +// Tofus are rendered with the first font. +A🐈ዲሞB + +--- shaping-emoji-basic --- +// This should form a three-member family. +👩👩👦 + +// This should form a pride flag. +🏳️🌈 + +// Skin tone modifier should be applied. +👍🏿 + +// This should be a 1 in a box. +1️⃣ + +--- shaping-emoji-bad-zwj --- +// These two shouldn't be affected by a zero-width joiner. +🏞🌋 |
