cosmic-text/src
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
..
edit Add Renderer trait for more flexible rendering of buffers and editors 2025-11-06 11:23:11 -07:00
font Reorder fields in FontMatchKey to fix fallback logic; Add comments 2026-01-20 08:40:39 -07:00
attrs.rs Allow fallback to fonts with mismatched stretch or style 2026-01-16 10:43:22 -07:00
bidi_para.rs refactor: address clippy warnings and improve code quality (#409) 2025-08-11 13:58:59 -06:00
buffer.rs Add set_hinting method to Buffer 2025-12-01 13:59:55 -07:00
buffer_line.rs Add set_hinting method to Buffer 2025-12-01 13:59:55 -07:00
cached.rs refactor: address clippy warnings and improve code quality (#409) 2025-08-11 13:58:59 -06:00
cursor.rs refactor: address clippy warnings and improve code quality (#409) 2025-08-11 13:58:59 -06:00
glyph_cache.rs refactor: address clippy warnings and improve code quality (#409) 2025-08-11 13:58:59 -06:00
layout.rs Replace magic boolean with new Hinting enum 2025-12-01 13:59:55 -07:00
lib.rs Add set_hinting method to Buffer 2025-12-01 13:59:55 -07:00
line_ending.rs refactor: address clippy warnings and improve code quality (#409) 2025-08-11 13:58:59 -06:00
math.rs Support expanding tabs 2024-06-10 08:12:42 -06:00
render.rs Add Renderer trait for more flexible rendering of buffers and editors 2025-11-06 11:23:11 -07:00
shape.rs fix: prevent line break splitting |> ligature sequence 2026-01-29 09:04:48 -07:00
shape_run_cache.rs resolve all lints, update MSRV 2025-01-22 17:00:01 -07:00
swash.rs Fix variable font weight for SwashCache::get_outline_commands() 2026-01-16 10:24:38 -07:00