[glyf] "Support" glyf version 1

This commit is contained in:
Behdad Esfahbod 2023-03-08 10:35:39 -07:00
parent 552290f604
commit cfa9541daa
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ struct glyf_accelerator_t
vmtx = nullptr;
#endif
const OT::head &head = *face->table.head;
if (head.indexToLocFormat > 1 || head.glyphDataFormat > 0)
if (head.indexToLocFormat > 1 || head.glyphDataFormat > 1)
/* Unknown format. Leave num_glyphs=0, that takes care of disabling us. */
return;
short_offset = 0 == head.indexToLocFormat;