mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 01:18:13 +00:00
[gvar] Don't fail on imprefect gvar
No need to fail even if gvar doesn't have that much glyphs
This commit is contained in:
parent
ec17b62457
commit
02d1ec1658
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ struct gvar
|
|||
/* num_coords should exactly match gvar's axisCount due to how GlyphVariationData tuples are aligned */
|
||||
if (!font->num_coords || font->num_coords != table->axisCount) return true;
|
||||
|
||||
if (unlikely (glyph >= table->glyphCount)) return false;
|
||||
if (unlikely (glyph >= table->glyphCount)) return true;
|
||||
|
||||
hb_bytes_t var_data_bytes = table->get_glyph_var_data_bytes (table.get_blob (), glyph);
|
||||
if (!var_data_bytes.as<GlyphVariationData> ()->has_data ()) return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue