[pango/mark-offset] Flip vertical offsets



commit 3e8a4e141810bc024c4e65bf03be7312da7601a0
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 12 00:18:49 2019 -0400

    Flip vertical offsets
    
    This was experimentally determined to fix placement
    of diacritics in Arabic text. I am not entirely sure
    where the negation crept in, compared to 1.43, which
    makes me a little uncomfortable.
    
    Fixes https://gitlab.gnome.org/GNOME/pango/issues/408

 pango/pangofc-shape.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index 1e904730..ef84aa2a 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -409,17 +409,17 @@ pango_hb_shape (PangoFont           *font,
     for (i = 0; i < num_glyphs; i++)
       {
         /* 90 degrees rotation counter-clockwise. */
-       infos[i].geometry.width    =  hb_position->y_advance;
-       infos[i].geometry.x_offset =  hb_position->y_offset;
-       infos[i].geometry.y_offset = -hb_position->x_offset;
+       infos[i].geometry.width    =   hb_position->y_advance;
+       infos[i].geometry.x_offset =   hb_position->y_offset;
+       infos[i].geometry.y_offset = - hb_position->x_offset;
        hb_position++;
       }
   else /* horizontal */
     for (i = 0; i < num_glyphs; i++)
       {
-       infos[i].geometry.width    = hb_position->x_advance;
-       infos[i].geometry.x_offset = hb_position->x_offset;
-       infos[i].geometry.y_offset = hb_position->y_offset;
+       infos[i].geometry.width    =   hb_position->x_advance;
+       infos[i].geometry.x_offset =   hb_position->x_offset;
+       infos[i].geometry.y_offset = - hb_position->y_offset;
        hb_position++;
       }
 


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