提交 2cee5b68 编写于 作者: B Behdad Esfahbod

[ot-font] Fix short-offset calculation

上级 b50fcfa8
...@@ -140,8 +140,8 @@ struct hb_ot_face_glyf_accelerator_t ...@@ -140,8 +140,8 @@ struct hb_ot_face_glyf_accelerator_t
unsigned int start_offset, end_offset; unsigned int start_offset, end_offset;
if (this->short_offset) if (this->short_offset)
{ {
start_offset = this->loca->u.shortsZ[glyph]; start_offset = 2 * this->loca->u.shortsZ[glyph];
end_offset = this->loca->u.shortsZ[glyph + 1]; end_offset = 2 * this->loca->u.shortsZ[glyph + 1];
} }
else else
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册