diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2015-08-24 13:45:12 +0100 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2015-08-24 13:45:12 +0100 |
commit | 2cee5b68a07b99214ef9428fe5d03e7b378a558f (patch) | |
tree | 9396040da203f1807fba1b1c81278cc96efc9a40 | |
parent | b50fcfa82994f93568a54dd1eb7fd327f6db5586 (diff) | |
download | harfbuzz-2cee5b68a07b99214ef9428fe5d03e7b378a558f.tar.gz |
[ot-font] Fix short-offset calculation
-rw-r--r-- | src/hb-ot-font.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index f5bf6cc4..9cde8389 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 { |