From 36da668e6f6ffc8e5acd412d19c0d4b95c856a85 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 3 Dec 2018 19:41:01 +0530 Subject: [PATCH] Forgot to fill bitmap offset data when rendering colored glyphs --- kitty/freetype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/freetype.c b/kitty/freetype.c index 2590201eb..0e3ec3dee 100644 --- a/kitty/freetype.c +++ b/kitty/freetype.c @@ -460,6 +460,8 @@ render_color_bitmap(Face *self, int glyph_id, ProcessedBitmap *ans, unsigned int ans->rows = bitmap->rows; ans->pixel_mode = bitmap->pixel_mode; if (ans->width > num_cells * cell_width + 2) downsample_bitmap(ans, num_cells * cell_width, cell_height); + ans->bitmap_top = (float)self->face->glyph->bitmap_top / ans->factor; + ans->bitmap_left = (float)self->face->glyph->bitmap_left / ans->factor; detect_right_edge(ans); return true; }