[gtk/wip/chergert/glyphy] gsk/gl: fix inverted text with glyphy



commit 71cc86a467b506cf12be9419ce68e4295ef98837
Author: Christian Hergert <chergert redhat com>
Date:   Fri Mar 18 09:29:58 2022 -0700

    gsk/gl: fix inverted text with glyphy
    
    Somehow I missed this when porting over from Glyphy, but Behdad quickly
    pointed it out to me.

 gsk/gl/gskglglyphylibrary.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gsk/gl/gskglglyphylibrary.c b/gsk/gl/gskglglyphylibrary.c
index 16bea4de23..c29408f639 100644
--- a/gsk/gl/gskglglyphylibrary.c
+++ b/gsk/gl/gskglglyphylibrary.c
@@ -263,6 +263,11 @@ encode_glyph (GskGLGlyphyLibrary *self,
 
   g_assert (glyphy_arc_accumulator_get_error (self->acc) <= tolerance);
 
+  if (self->acc_endpoints->len > 0)
+    glyphy_outline_winding_from_even_odd ((gpointer)self->acc_endpoints->data,
+                                          self->acc_endpoints->len,
+                                          FALSE);
+
   if (!glyphy_arc_list_encode_blob ((gpointer)self->acc_endpoints->data,
                                     self->acc_endpoints->len,
                                     buffer,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]