mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 21:32:13 +03:00
2c95b98447
Previously we'd use the scaled-by-line-height-and-cell-width dimensions for the text cursor, leading to oddly dimensioned block cursors when `line_height` or `cell_width` were configured. This commit captures the native cell dimensions into the RenderMetrics which makes it feasible for the glyph and sprite rendering logic to reason about it. The cursor rendering now renders at the native size and position by using a transform to scale and translate into the correct spot. We could potentially use the same technique for eg: braille or other non-drawing characters (https://github.com/wez/wezterm/issues/1957) although that is more complex than just this commit. refs: https://github.com/wez/wezterm/issues/2882 |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml |