diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-01-15 13:42:48 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-01-17 18:43:47 +0000 |
| commit | a9298959a188013530257a665d839a6343229b85 (patch) | |
| tree | b17d9bbfd8395e91f86c18e6708e603f68d557da /foot-server@.socket | |
| parent | terminfo: sync with ncurses 2023-01-14 (diff) | |
render: fix double-width glyphs glitching when surrounding cells overflow into it
If cells overflowed (for example, by using an italic font that isn’t
truly monospaced) into a double-width glyph (that itself is *not*
overflowing), then the double-width glyph would glitch when being
rendered; typically the second half of it would occasionally
disappear.
This happened because we tried to rasterize the second cell of the
double-width glyph. This cell contains a special “spacer”
value. Rasterizing that typically results the font’s “not available”
glyph.
If _that_ glyph overflows, things broke; we’d later end up forcing a
re-render of it (thus erasing half the double-width glyph). But since
the double-width glyph _itself_ doesn’t overflow, _it_ wouldn’t be
re-rendered, leaving it half erased.
Fix by recognizing spacer cells, and not trying to rasterize them (set
glyph count to 0, and cell count to 1).
Closes #1256
Diffstat (limited to 'foot-server@.socket')
0 files changed, 0 insertions, 0 deletions
