diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index 57d3e11f9..8ca9350d1 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -439,7 +439,7 @@ struct Glyph auto component_coords = coords; if (item.is_reset_unspecified_axes ()) - component_coords = hb_array (font->coords, font->num_coords); + component_coords = hb_array (); coord_setter_t coord_setter (component_coords); item.set_variations (coord_setter, record_points); diff --git a/src/hb-array.hh b/src/hb-array.hh index 17562bc33..e82c08153 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -304,6 +304,9 @@ struct hb_array_t : hb_iter_with_fallback_t, Type&> unsigned int backwards_length = 0; }; template inline hb_array_t +hb_array () +{ return hb_array_t (); } +template inline hb_array_t hb_array (T *array, unsigned int length) { return hb_array_t (array, length); } template inline hb_array_t