[gtk/wip/chergert/macos-fixes: 9/15] Fix kerning of GL rendered glyphs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/macos-fixes: 9/15] Fix kerning of GL rendered glyphs
- Date: Thu, 3 Feb 2022 21:37:06 +0000 (UTC)
commit 1f197232050ee7bc44fb4e1d10298435de1c9542
Author: Marek Kasik <mkasik redhat com>
Date: Mon Jan 31 15:41:18 2022 +0100
Fix kerning of GL rendered glyphs
Multiple scaled shifts by 1024 too.
Fixes: #4602
gsk/gl/gskglglyphlibrary.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglglyphlibrary.c b/gsk/gl/gskglglyphlibrary.c
index bd811eadba..b749384674 100644
--- a/gsk/gl/gskglglyphlibrary.c
+++ b/gsk/gl/gskglglyphlibrary.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]