aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--font.c2
1 files changed, 1 insertions, 1 deletions
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,