summaryrefslogtreecommitdiff
path: root/tests/typ/text/complex.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-24 17:12:34 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-24 17:12:34 +0100
commit73615f7e3ce23f2ea656d04ea9f96184f5ebdc0a (patch)
tree7691b792e1e4b33469a72c40fc76854f1de0814e /tests/typ/text/complex.typ
parent6720520ec06dd0718f81049b2b11e81664f7ef62 (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.typ38
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