[subset] Fix simple glyph trim_padding in glyf table

Detail: when numOfContours = 1 and flag = 0x31
xCoordinates and yCoordinates would be empty
This commit is contained in:
Qunxin Liu 2020-01-30 12:36:58 -08:00 committed by Garret Rieger
parent b6a8f5e63c
commit 0216a96b0f
1 changed files with 0 additions and 1 deletions

View File

@ -471,7 +471,6 @@ struct glyf
unsigned int num_instructions = StructAtOffset<HBUINT16> (glyph, 0);
glyph += 2 + num_instructions;
if (unlikely (glyph + 2 >= glyph_end)) return Glyph ();
unsigned int coord_bytes = 0;
unsigned int coords_with_flags = 0;