Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/harfbuzz/src/OT/glyf/coord-setter.hh @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 #ifndef OT_GLYF_COORD_SETTER_HH | |
| 2 #define OT_GLYF_COORD_SETTER_HH | |
| 3 | |
| 4 | |
| 5 #include "../../hb.hh" | |
| 6 | |
| 7 | |
| 8 namespace OT { | |
| 9 namespace glyf_impl { | |
| 10 | |
| 11 | |
| 12 struct coord_setter_t | |
| 13 { | |
| 14 coord_setter_t (hb_array_t<int> coords) : | |
| 15 coords (coords) {} | |
| 16 | |
| 17 int& operator [] (unsigned idx) | |
| 18 { | |
| 19 if (coords.length < idx + 1) | |
| 20 coords.resize (idx + 1); | |
| 21 return coords[idx]; | |
| 22 } | |
| 23 | |
| 24 hb_array_t<int> get_coords () | |
| 25 { return coords.as_array (); } | |
| 26 | |
| 27 hb_vector_t<int> coords; | |
| 28 }; | |
| 29 | |
| 30 | |
| 31 } /* namespace glyf_impl */ | |
| 32 } /* namespace OT */ | |
| 33 | |
| 34 #endif /* OT_GLYF_COORD_SETTER_HH */ |
