[pango/wip/matthiasc/font-variations] Fix warning



commit a257f1853bed88728d7446959f03c9c98b58cb6c
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon Sep 18 13:03:16 2017 -0400

    Fix warning
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787194

 pango/pangofc-shape.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index cd6fd30..a59ca67 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -206,13 +206,9 @@ pango_fc_hb_font_get_glyph_h_origin (hb_font_t *font, void *font_data,
     return FALSE;
 
   /* Note: FreeType's vertical metrics grows downward while other FreeType coordinates
-   * have a Y growing upward.  Hence the extra negation. */
-  *x = PANGO_UNITS_26_6 (ft_face->glyph->metrics.horiBearingX -   ft_face->glyph->metrics.vertBearingX);
-  *y = PANGO_UNITS_26_6 (ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY));
-
-  /* XXX */
-  *x = -*x;
-  *y =  *y;
+   * have a Y growing upward.  Hence the extra negations. */
+  *x = -PANGO_UNITS_26_6 (ft_face->glyph->metrics.horiBearingX -   ft_face->glyph->metrics.vertBearingX);
+  *y = +PANGO_UNITS_26_6 (ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY));
 
   return TRUE;
 }


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