[glyf] "Support" glyf version 1
This commit is contained in:
parent
552290f604
commit
cfa9541daa
|
@ -162,7 +162,7 @@ struct glyf_accelerator_t
|
||||||
vmtx = nullptr;
|
vmtx = nullptr;
|
||||||
#endif
|
#endif
|
||||||
const OT::head &head = *face->table.head;
|
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. */
|
/* Unknown format. Leave num_glyphs=0, that takes care of disabling us. */
|
||||||
return;
|
return;
|
||||||
short_offset = 0 == head.indexToLocFormat;
|
short_offset = 0 == head.indexToLocFormat;
|
||||||
|
|
Loading…
Reference in New Issue