summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-12 21:36:37 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-12 22:23:08 +0200
commitc3a387b8f7086fc6d58a4175e8408fbbf375f5f2 (patch)
tree3036e9b742abe647ff47b1e4e9499a6a0fa0d096 /tests
parent56968bc0d65600124774aec74348151cfbc7ea6e (diff)
Segment by script
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/shaping.pngbin17929 -> 2640 bytes
-rw-r--r--tests/ref/text/tracking-spacing.pngbin6474 -> 6483 bytes
-rw-r--r--tests/typ/text/shaping.typ18
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/ref/text/shaping.png b/tests/ref/text/shaping.png
index a95f44e0..3d3e611d 100644
--- a/tests/ref/text/shaping.png
+++ b/tests/ref/text/shaping.png
Binary files differ
diff --git a/tests/ref/text/tracking-spacing.png b/tests/ref/text/tracking-spacing.png
index ec130c99..8e6db3cc 100644
--- a/tests/ref/text/tracking-spacing.png
+++ b/tests/ref/text/tracking-spacing.png
Binary files differ
diff --git a/tests/typ/text/shaping.typ b/tests/typ/text/shaping.typ
new file mode 100644
index 00000000..51199090
--- /dev/null
+++ b/tests/typ/text/shaping.typ
@@ -0,0 +1,18 @@
+// Test shaping quirks.
+
+---
+// Test separation by script.
+ABCअपार्टमेंट
+
+// This is how it should look like.
+अपार्टमेंट
+
+// This (without the spaces) is how it would look
+// if we didn't separate by script.
+अ पा र् ट में ट
+
+---
+// Test that RTL safe-to-break doesn't panic even though newline
+// doesn't exist in shaping output.
+#set text(dir: rtl, "Noto Serif Hebrew")
+\ ט