Fix missing xscale in rtl graphite unpacking (#541)
authormhosken <mhosken@users.noreply.github.com>
Tue, 26 Sep 2017 18:29:45 +0000 (01:29 +0700)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 26 Sep 2017 18:29:45 +0000 (14:29 -0400)
* Fix missing xscale in rtl graphite unpacking

* Oops didn't need to mess with yscale

src/hb-graphite2.cc

index 9e0761e..bc247c6 100644 (file)
@@ -389,7 +389,7 @@ _hb_graphite2_shape (hb_shape_plan_t    *shape_plan,
   }
   else
   {
-    curradvx = gr_seg_advance_X(seg);
+    curradvx = gr_seg_advance_X(seg) * xscale;
     for (is = gr_seg_first_slot (seg); is; pPos++, info++, is = gr_slot_next_in_segment (is))
     {
       if (info->cluster != currclus)