mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-13 04:27:47 -05:00
render: use cell cols from compose chain, not grapheme
fcft’s view of how many columns a grapheme cluster is may differ from our own. Make sure the rendered glyph matches the number of columns that were allocated when the cluster was printed.
This commit is contained in:
parent
34e85e7726
commit
b14524215b
1 changed files with 2 additions and 1 deletions
3
render.c
3
render.c
|
|
@ -570,10 +570,11 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
}
|
||||
|
||||
if (grapheme != NULL) {
|
||||
cell_cols = composed->width;
|
||||
|
||||
composed = NULL;
|
||||
glyphs = grapheme->glyphs;
|
||||
glyph_count = grapheme->count;
|
||||
cell_cols = grapheme->cols;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue