From 767a0ec232a184261f8727314a72a9085057a7ab Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 19 Jan 2020 12:44:21 +0100 Subject: fcft: update to 1.0.0 Allow/disallow subpixel antialiasing in font_glyph_for_wc(), not using font_enable_subpixel_antialias(). --- render.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'render.c') diff --git a/render.c b/render.c index 70da55ef..39a9f58c 100644 --- a/render.c +++ b/render.c @@ -418,7 +418,8 @@ render_cell(struct terminal *term, pixman_image_t *pix, struct font *font = attrs_to_font(term, &cell->attrs); const struct glyph *glyph = cell->wc != 0 - ? font_glyph_for_wc(font, cell->wc) : NULL; + ? font_glyph_for_wc(font, cell->wc, term->colors.alpha == 0xffff) + : NULL; int cell_cols = glyph != NULL ? max(1, glyph->cols) : 1; @@ -934,7 +935,7 @@ render_search_box(struct terminal *term) if (i == term->search.cursor) draw_bar(term, buf->pix, font, &fg, x, y); - const struct glyph *glyph = font_glyph_for_wc(font, term->search.buf[i]); + const struct glyph *glyph = font_glyph_for_wc(font, term->search.buf[i], true); if (glyph == NULL) continue; -- cgit v1.3