render: handle fcft_glyph_rasterize() failure correctly

This commit is contained in:
Daniel Eklöf 2021-05-31 17:11:58 +02:00
parent bd98cb6a73
commit 50be924285
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -582,9 +582,14 @@ render_cell(struct terminal *term, pixman_image_t *pix,
if (single == NULL && grapheme == NULL) {
xassert(base != 0);
single = fcft_glyph_rasterize(font, base, term->font_subpixel);
glyph_count = 1;
glyphs = &single;
cell_cols = single->cols;
if (single == NULL) {
glyph_count = 0;
cell_cols = 1;
} else {
glyph_count = 1;
glyphs = &single;
cell_cols = single->cols;
}
}
}