mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +08:00
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.
8 lines
196 B
XML
8 lines
196 B
XML
// 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}"
|