Fix kerning of GL rendered glyphs

Multiple scaled shifts by 1024 too.

Fixes: #4602
This commit is contained in:
Marek Kasik
2022-01-31 15:41:18 +01:00
parent d033a099ae
commit cb1dd66220

View File

@@ -175,8 +175,8 @@ render_glyph (cairo_surface_t *surface,
glyph_info.glyph = key->glyph;
glyph_info.geometry.width = value->ink_rect.width * 1024;
glyph_info.geometry.x_offset = 0.25 * key->xshift - value->ink_rect.x * 1024;
glyph_info.geometry.y_offset = 0.25 * key->yshift - value->ink_rect.y * 1024;
glyph_info.geometry.x_offset = (0.25 * key->xshift - value->ink_rect.x) * 1024;
glyph_info.geometry.y_offset = (0.25 * key->yshift - value->ink_rect.y) * 1024;
glyph_string.num_glyphs = 1;
glyph_string.glyphs = &glyph_info;