[glyf] Relax a condition that font num_coords be equal to gvar's
gvar itself still checks the same.
This commit is contained in:
parent
d5cfbaa068
commit
19cbfb9ce9
|
@ -295,7 +295,7 @@ struct glyf_accelerator_t
|
|||
if (unlikely (gid >= num_glyphs)) return false;
|
||||
|
||||
#ifndef HB_NO_VAR
|
||||
if (font->num_coords && font->num_coords == gvar->get_axis_count ())
|
||||
if (font->num_coords)
|
||||
return get_points (font, gid, points_aggregator_t (font, extents, nullptr));
|
||||
#endif
|
||||
return glyph_for_gid (gid).get_extents (font, *this, extents);
|
||||
|
|
|
@ -332,7 +332,7 @@ _hb_coretext_shaper_font_data_create (hb_font_t *font)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (font->coords)
|
||||
if (font->num_coords)
|
||||
{
|
||||
CFMutableDictionaryRef variations =
|
||||
CFDictionaryCreateMutable (kCFAllocatorDefault,
|
||||
|
|
Loading…
Reference in New Issue