[glyf] Relax a condition that font num_coords be equal to gvar's

gvar itself still checks the same.
This commit is contained in:
Behdad Esfahbod 2022-06-27 12:32:18 -06:00
parent d5cfbaa068
commit 19cbfb9ce9
2 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ struct glyf_accelerator_t
if (unlikely (gid >= num_glyphs)) return false; if (unlikely (gid >= num_glyphs)) return false;
#ifndef HB_NO_VAR #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)); return get_points (font, gid, points_aggregator_t (font, extents, nullptr));
#endif #endif
return glyph_for_gid (gid).get_extents (font, *this, extents); return glyph_for_gid (gid).get_extents (font, *this, extents);

View File

@ -332,7 +332,7 @@ _hb_coretext_shaper_font_data_create (hb_font_t *font)
return nullptr; return nullptr;
} }
if (font->coords) if (font->num_coords)
{ {
CFMutableDictionaryRef variations = CFMutableDictionaryRef variations =
CFDictionaryCreateMutable (kCFAllocatorDefault, CFDictionaryCreateMutable (kCFAllocatorDefault,