[Glyph] Pass phantom-only to gvar only for SIMPLE glyphs

For Composites we need to get the translation offset deltas.
This commit is contained in:
Behdad Esfahbod 2023-07-02 12:07:22 -06:00
parent e92eefaabb
commit 645bde4738

View file

@ -375,7 +375,7 @@ struct Glyph
glyf_accelerator.gvar->apply_deltas_to_points (gid,
coords,
points.as_array ().sub_array (old_length),
phantom_only);
phantom_only && type == SIMPLE);
#endif
// mainly used by CompositeGlyph calculating new X/Y offset value so no need to extend it