[subset] Fix simple glyph trim_padding in glyf table

Detail: when numOfContours = 1 and flag = 0x31
xCoordinates and yCoordinates would be empty
pull/2153/head
Qunxin Liu 5 years ago committed by Garret Rieger
parent b6a8f5e63c
commit 0216a96b0f
  1. 1
      src/hb-ot-glyf-table.hh

@ -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;

Loading…
Cancel
Save