[gvar] Accept coord_count even if is higher than gvar's axisCount

This commit is contained in:
Ebrahim Byagowi 2020-02-24 09:08:01 +03:30
parent 197e2e929b
commit 19b78d56cd
1 changed files with 1 additions and 0 deletions

View File

@ -563,6 +563,7 @@ struct gvar
const int *coords, unsigned int coord_count,
const hb_array_t<contour_point_t> points) const
{
coord_count = hb_min (coord_count, gvar_table->axisCount);
if (!coord_count || coord_count != gvar_table->axisCount) return true;
const GlyphVarData *var_data = gvar_table->get_glyph_var_data (glyph);