From d4fbe1ef061d0e058a2700cfd4f602e55e126f65 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 17 Dec 2022 00:19:09 +0200 Subject: HarfBuzz: Update to version 6.0.0 --- thirdparty/harfbuzz/src/OT/glyf/coord-setter.hh | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 thirdparty/harfbuzz/src/OT/glyf/coord-setter.hh (limited to 'thirdparty/harfbuzz/src/OT/glyf/coord-setter.hh') diff --git a/thirdparty/harfbuzz/src/OT/glyf/coord-setter.hh b/thirdparty/harfbuzz/src/OT/glyf/coord-setter.hh new file mode 100644 index 0000000000..df64ed5af7 --- /dev/null +++ b/thirdparty/harfbuzz/src/OT/glyf/coord-setter.hh @@ -0,0 +1,34 @@ +#ifndef OT_GLYF_COORD_SETTER_HH +#define OT_GLYF_COORD_SETTER_HH + + +#include "../../hb.hh" + + +namespace OT { +namespace glyf_impl { + + +struct coord_setter_t +{ + coord_setter_t (hb_array_t coords) : + coords (coords) {} + + int& operator [] (unsigned idx) + { + if (coords.length < idx + 1) + coords.resize (idx + 1); + return coords[idx]; + } + + hb_array_t get_coords () + { return coords.as_array (); } + + hb_vector_t coords; +}; + + +} /* namespace glyf_impl */ +} /* namespace OT */ + +#endif /* OT_GLYF_COORD_SETTER_HH */ -- cgit v1.2.3