mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
[ot-font] Fix short-offset calculation
This commit is contained in:
1 parent
b50fcfa829
commit
2cee5b68a0
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user