font: ceil:ing the top value seems to look better when scaled

This commit is contained in:
Daniel Eklöf 2019-11-30 23:31:51 +01:00
parent 16c25f9a8f
commit 95d97b3973
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
font.c
View file

@ -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,