diff options
| author | bluebear94 <uruwi@protonmail.com> | 2023-06-26 07:40:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-26 13:40:21 +0200 |
| commit | 9ef4643ba104acc08cd3a4fce8cfea72253654b1 (patch) | |
| tree | 62d5e2a87de702187825094eb98b4a391874c83a /tests | |
| parent | 47a131dfbb9cf3c0adad6e0d9d669f750fbda658 (diff) | |
shape_tofus: respect text direction when inserting tofus (#1519)
This ensures that the ranges of the shaped glyphs are monotonically
decreasing in right-to-left-text, thus avoiding nonsensical results
in find_safe_to_break that later causes a panic (see #1373).
Additionally, debug assertions have been added to catch non-monotonic
glyph ranges.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/bidi-tofus.png | bin | 0 -> 513 bytes | |||
| -rw-r--r-- | tests/typ/bugs/bidi-tofus.typ | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/ref/bugs/bidi-tofus.png b/tests/ref/bugs/bidi-tofus.png Binary files differnew file mode 100644 index 00000000..1b7a7d8b --- /dev/null +++ b/tests/ref/bugs/bidi-tofus.png diff --git a/tests/typ/bugs/bidi-tofus.typ b/tests/typ/bugs/bidi-tofus.typ new file mode 100644 index 00000000..3b43b280 --- /dev/null +++ b/tests/typ/bugs/bidi-tofus.typ @@ -0,0 +1,7 @@ +// Test that shaping missing characters in both left-to-right and +// right-to-left directions does not cause a crash. + +--- +#"\u{590}\u{591}\u{592}\u{593}" + +#"\u{30000}\u{30001}\u{30002}\u{30003}" |
