diff --git a/src/OT/glyf/coord-setter.hh b/src/OT/glyf/coord-setter.hh index c3d5ce5b7..8ef20e76a 100644 --- a/src/OT/glyf/coord-setter.hh +++ b/src/OT/glyf/coord-setter.hh @@ -29,7 +29,11 @@ struct coord_setter_t int& operator [] (unsigned idx) { if (new_coords.length < idx + 1) + { new_coords.resize (idx + 1); + font->coords = new_coords.arrayZ; + font->num_coords = new_coords.length; + } return new_coords[idx]; }