From 6f83ef81e54b2695692c76a0a06c94c53cb7e315 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 20 Apr 2020 18:37:59 +0200 Subject: render: use output's subpixel mode when rasterizing glyphs --- render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render.c') diff --git a/render.c b/render.c index fdaaf85d..1b71137b 100644 --- a/render.c +++ b/render.c @@ -404,7 +404,7 @@ 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, term->colors.alpha == 0xffff) + ? font_glyph_for_wc(font, cell->wc, term->font_subpixel) : NULL; int cell_cols = glyph != NULL ? max(1, glyph->cols) : 1; -- cgit v1.3