From ef2a8f722fc0ec12f5a59d44d4d60d376907fd31 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 6 Feb 2023 12:04:16 -0700 Subject: [PATCH] [VarComposite] Adjust for RESET_UNSPECIFIED_AXES semantic change https://github.com/harfbuzz/boring-expansion-spec/issues/81 --- src/OT/glyf/Glyph.hh | 2 +- src/hb-array.hh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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