From 303b61a2e6ad211a82a786f2cc66c21590c57e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 27 Nov 2019 21:42:16 +0100 Subject: [PATCH] font: fix calculation of scaled glyph horizontal offset --- font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font.c b/font.c index 1e9463e..de1dc1e 100644 --- a/font.c +++ b/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,