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. |
||
|---|---|---|
| .. | ||
| common | ||
| images | ||
| editor_modified_state.rs | ||
| ligature_segmentation.rs | ||
| shaping_and_rendering.rs | ||
| wrap_stability.rs | ||
| wrap_word_fallback.rs | ||