[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Aug 24 05:45:29 PDT 2015


 src/hb-ot-font.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2cee5b68a07b99214ef9428fe5d03e7b378a558f
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Aug 24 13:45:12 2015 +0100

    [ot-font] Fix short-offset calculation

diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc
index f5bf6cc..9cde838 100644
--- a/src/hb-ot-font.cc
+++ b/src/hb-ot-font.cc
@@ -140,8 +140,8 @@ struct hb_ot_face_glyf_accelerator_t
     unsigned int start_offset, end_offset;
     if (this->short_offset)
     {
-      start_offset = this->loca->u.shortsZ[glyph];
-      end_offset   = this->loca->u.shortsZ[glyph + 1];
+      start_offset = 2 * this->loca->u.shortsZ[glyph];
+      end_offset   = 2 * this->loca->u.shortsZ[glyph + 1];
     }
     else
     {


More information about the HarfBuzz mailing list