diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 22:31:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 22:31:51 +0000 |
| commit | 95d97b39734026e05f47b2064fe686da1ae40d20 (patch) | |
| tree | 981f0373d1c8fef6a257bbfa6a07474fd706c978 | |
| parent | font: fix estimated underline thickness; descent is typically negative (diff) | |
font: ceil:ing the top value seems to look better when scaled
| -rw-r--r-- | font.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |
