[gtk/wip/chergert/glproto: 468/493] bring over GL glyph subpixel fix




commit a2bfc7c4bea75313773e17f75c614ed77760f29b
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 16 15:22:02 2021 -0800

    bring over GL glyph subpixel fix

 gsk/next/gskglglyphlibrary.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gsk/next/gskglglyphlibrary.c b/gsk/next/gskglglyphlibrary.c
index ab68efbbac..e432aad9cd 100644
--- a/gsk/next/gskglglyphlibrary.c
+++ b/gsk/next/gskglglyphlibrary.c
@@ -164,10 +164,10 @@ render_glyph (cairo_surface_t           *surface,
   glyph_info.glyph = key->glyph;
   glyph_info.geometry.width = value->ink_rect.width * 1024;
   if (glyph_info.glyph & PANGO_GLYPH_UNKNOWN_FLAG)
-    glyph_info.geometry.x_offset = 0;
+    glyph_info.geometry.x_offset = 250 * key->xshift;
   else
-    glyph_info.geometry.x_offset = - value->ink_rect.x * 1024;
-  glyph_info.geometry.y_offset = - value->ink_rect.y * 1024;
+    glyph_info.geometry.x_offset = 250 * key->xshift - value->ink_rect.x * 1024;
+  glyph_info.geometry.y_offset = 250 * 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]