diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-24 08:53:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-24 08:53:34 +0000 |
| commit | f736d467d9714cd2d53019164d091fa3229f64ed (patch) | |
| tree | c4ba1a2b0c7b207500d072af3ce18ebee32f7372 | |
| parent | term: fcft: max/space advance fields have been renamed (diff) | |
fcft: fcft_glyph_for_wc() has been renamed to fcft_glyph_rasterize()
| -rw-r--r-- | render.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -404,7 +404,7 @@ render_cell(struct terminal *term, pixman_image_t *pix, struct fcft_font *font = attrs_to_font(term, &cell->attrs); const struct fcft_glyph *glyph = cell->wc != 0 - ? fcft_glyph_for_wc(font, cell->wc, term->font_subpixel) + ? fcft_glyph_rasterize(font, cell->wc, term->font_subpixel) : NULL; int cell_cols = glyph != NULL ? max(1, glyph->cols) : 1; @@ -1553,7 +1553,9 @@ render_search_box(struct terminal *term) if (i == term->search.cursor) draw_bar(term, buf->pix, font, &fg, x, y); - const struct fcft_glyph *glyph = fcft_glyph_for_wc(font, term->search.buf[i], true); + const struct fcft_glyph *glyph = fcft_glyph_rasterize( + font, term->search.buf[i], true); + if (glyph == NULL) continue; |
