cosmic-text/tests
Adam Kowalski 8c8c41b05b fix: prevent line break splitting |> ligature sequence
The unicode-linebreak crate treats the pipe character '|' as a break opportunity (BA/AL class). This causes ShapeSpan::build to split text like '|>' into separate ShapeWords. When these words are shaped independently, the font shaping engine cannot form ligatures that cross the word boundary.

This patch manually checks for the '|>' sequence during segmentation and skips the break opportunity, ensuring they remain in the same shaping run.

Added a unit test 'ligature_segmentation' to verify that '|>' remains a single word.
2026-01-29 09:04:48 -07:00
..
common Add set_hinting method to Buffer 2025-12-01 13:59:55 -07:00
images Update test images 2025-03-12 10:54:06 -06:00
editor_modified_state.rs Add set_hinting method to Buffer 2025-12-01 13:59:55 -07:00
ligature_segmentation.rs fix: prevent line break splitting |> ligature sequence 2026-01-29 09:04:48 -07:00
shaping_and_rendering.rs Update test image size 2024-02-02 10:50:17 -07:00
wrap_stability.rs Add set_hinting method to Buffer 2025-12-01 13:59:55 -07:00
wrap_word_fallback.rs Add set_hinting method to Buffer 2025-12-01 13:59:55 -07:00