-
-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
text cursor glyph renders at native cell size
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 (#1957) although that is more complex than just this commit. refs: #2882
- Loading branch information
Showing
3 changed files
with
85 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters