mirror of
https://github.com/wez/wezterm.git
synced 2024-12-22 21:01:36 +03:00
7cc91696e9
This sequence forms a grapheme with cell_width=2, but harfbuzz returns it as two distinct clusters, causing our prior logic to shape them independently from different fonts, but our logic for assessing width would resolve them both to the same cell and double-count their width, leading to issues with the rendered result. This commit revises our clustering logic to add a pass that compares the harfbuzz cluster positions with the cell-based positions from the presentation_width that may have been provided. We use the starting cell positions from that to order and de-dup so that clusters aren't split in the wrong place. refs: https://github.com/wez/wezterm/issues/2572 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |