forked from external/yambar
font: ceil:ing the top value seems to look better when scaled
This commit is contained in:
parent
5ab35a38d5
commit
7b4dbf384c
1 changed files with 1 additions and 1 deletions
2
font.c
2
font.c
|
@ -580,7 +580,7 @@ glyph_for_wchar(const struct font *font, wchar_t wc, struct glyph *glyph)
|
||||||
.cols = wcwidth(wc),
|
.cols = wcwidth(wc),
|
||||||
.pix = pix,
|
.pix = pix,
|
||||||
.x = font->face->glyph->bitmap_left * font->pixel_size_fixup,
|
.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,
|
.x_advance = ceil(font->face->glyph->advance.x / 64) * font->pixel_size_fixup,
|
||||||
.width = width,
|
.width = width,
|
||||||
.height = rows,
|
.height = rows,
|
||||||
|
|
Loading…
Add table
Reference in a new issue