mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
render: handle fcft_glyph_rasterize() failure correctly
This commit is contained in:
parent
bd98cb6a73
commit
50be924285
1 changed files with 8 additions and 3 deletions
11
render.c
11
render.c
|
|
@ -582,9 +582,14 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
||||||
if (single == NULL && grapheme == NULL) {
|
if (single == NULL && grapheme == NULL) {
|
||||||
xassert(base != 0);
|
xassert(base != 0);
|
||||||
single = fcft_glyph_rasterize(font, base, term->font_subpixel);
|
single = fcft_glyph_rasterize(font, base, term->font_subpixel);
|
||||||
glyph_count = 1;
|
if (single == NULL) {
|
||||||
glyphs = &single;
|
glyph_count = 0;
|
||||||
cell_cols = single->cols;
|
cell_cols = 1;
|
||||||
|
} else {
|
||||||
|
glyph_count = 1;
|
||||||
|
glyphs = &single;
|
||||||
|
cell_cols = single->cols;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue