From 95d97b39734026e05f47b2064fe686da1ae40d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 30 Nov 2019 23:31:51 +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 674c56ef..f53f11e9 100644 --- a/font.c +++ b/font.c @@ -673,7 +673,7 @@ glyph_for_wchar(const struct font *font, wchar_t wc, struct glyph *glyph) .cols = cols, .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), .width = width, .height = rows, .valid = true,