forked from external/yambar
font: fix calculation of scaled glyph horizontal offset
This commit is contained in:
parent
e837e71179
commit
303b61a2e6
1 changed files with 1 additions and 1 deletions
2
font.c
2
font.c
|
@ -579,7 +579,7 @@ glyph_for_wchar(const struct font *font, wchar_t wc, struct glyph *glyph)
|
|||
.wc = wc,
|
||||
.cols = wcwidth(wc),
|
||||
.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,
|
||||
.x_advance = font->face->glyph->advance.x / 64,
|
||||
.width = width,
|
||||
|
|
Loading…
Add table
Reference in a new issue