From 7b4dbf384c38fc669625841ed253d2cbbc68828d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 30 Nov 2019 23:30:48 +0100 Subject: [PATCH] font: ceil:ing the top value seems to look better when scaled --- font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font.c b/font.c index 53616a7..72227e1 100644 --- a/font.c +++ b/font.c @@ -580,7 +580,7 @@ glyph_for_wchar(const struct font *font, wchar_t wc, struct glyph *glyph) .cols = wcwidth(wc), .pix = pix, .x = font->face->glyph->bitmap_left * font->pixel_size_fixup, - .y = font->face->glyph->bitmap_top * font->pixel_size_fixup, + .y = ceil(font->face->glyph->bitmap_top * font->pixel_size_fixup), .x_advance = ceil(font->face->glyph->advance.x / 64) * font->pixel_size_fixup, .width = width, .height = rows,