summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-4468-linebreak-thai.pngbin0 -> 247 bytes
-rw-r--r--tests/ref/linebreak-thai.pngbin6968 -> 6877 bytes
-rw-r--r--tests/suite/layout/inline/linebreak.typ8
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/ref/issue-4468-linebreak-thai.png b/tests/ref/issue-4468-linebreak-thai.png
new file mode 100644
index 00000000..6257c560
--- /dev/null
+++ b/tests/ref/issue-4468-linebreak-thai.png
Binary files differ
diff --git a/tests/ref/linebreak-thai.png b/tests/ref/linebreak-thai.png
index 8053a212..c31a61bd 100644
--- a/tests/ref/linebreak-thai.png
+++ b/tests/ref/linebreak-thai.png
Binary files differ
diff --git a/tests/suite/layout/inline/linebreak.typ b/tests/suite/layout/inline/linebreak.typ
index 7e959352..8371d76e 100644
--- a/tests/suite/layout/inline/linebreak.typ
+++ b/tests/suite/layout/inline/linebreak.typ
@@ -115,3 +115,11 @@ For info see #link("https://myhost.tld").
// for links because it now splits on word boundaries. We avoid the link markup
// syntax because it's show rule interferes.
#"http://creativecommons.org/licenses/by-nc-sa/4.0/"
+
+--- issue-4468-linebreak-thai ---
+// In this bug, empty-range glyphs at line break boundaries could be duplicated.
+// This happens for Thai specifically because it has both
+// - line break opportunities
+// - shaping that results in multiple glyphs in the same cluster
+#set text(font: "Noto Sans Thai")
+#h(85pt) งบิก