[gvar] Don't apply anything when no coords is given

This commit is contained in:
Ebrahim Byagowi 2019-11-28 08:42:45 +03:30
parent 742aaa1363
commit 5b08596d60
1 changed files with 2 additions and 1 deletions

View File

@ -565,7 +565,8 @@ struct gvar
const hb_array_t<contour_point_t> points,
const hb_array_t<unsigned int> end_points) const
{
if (unlikely (coord_count != gvar_table->axisCount)) return !coord_count;
if (!coord_count) return true;
if (unlikely (coord_count != gvar_table->axisCount)) return false;
const GlyphVarData *var_data = gvar_table->get_glyph_var_data (glyph);
if (var_data == &Null (GlyphVarData)) return true;