[VarComposite] Adjust for RESET_UNSPECIFIED_AXES semantic change

https://github.com/harfbuzz/boring-expansion-spec/issues/81
This commit is contained in:
Behdad Esfahbod 2023-02-06 12:04:16 -07:00
parent 474b99d122
commit ef2a8f722f
2 changed files with 4 additions and 1 deletions

View File

@ -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<int> ();
coord_setter_t coord_setter (component_coords);
item.set_variations (coord_setter, record_points);

View File

@ -304,6 +304,9 @@ struct hb_array_t : hb_iter_with_fallback_t<hb_array_t<Type>, Type&>
unsigned int backwards_length = 0;
};
template <typename T> inline hb_array_t<T>
hb_array ()
{ return hb_array_t<T> (); }
template <typename T> inline hb_array_t<T>
hb_array (T *array, unsigned int length)
{ return hb_array_t<T> (array, length); }
template <typename T, unsigned int length_> inline hb_array_t<T>