From 10d38dcdfd7e0b62f35ac5ff1d6cdf9ce1a78cc2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 9 Dec 2022 19:19:57 -0700 Subject: [PATCH] [varc] Change format slightly Fixes https://github.com/harfbuzz/boring-expansion-spec/issues/70 --- src/OT/glyf/VarCompositeGlyph.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OT/glyf/VarCompositeGlyph.hh b/src/OT/glyf/VarCompositeGlyph.hh index 043ba645a..eb49f3ede 100644 --- a/src/OT/glyf/VarCompositeGlyph.hh +++ b/src/OT/glyf/VarCompositeGlyph.hh @@ -164,7 +164,7 @@ struct VarCompositeGlyphRecord unsigned axes_size = num_axes * axis_width; const F2DOT14 *q = (const F2DOT14 *) (axes_size + - &StructAfter (num_axes)); + &StructAfter (gid)); hb_array_t axis_points = points.as_array ().sub_array (points.length - get_num_points ()); unsigned count = num_axes; @@ -231,8 +231,8 @@ struct VarCompositeGlyphRecord { unsigned axis_width = (flags & AXIS_INDICES_ARE_SHORT) ? 2 : 1; - const HBUINT8 *p = &StructAfter (num_axes); - const HBUINT16 *q = &StructAfter (num_axes); + const HBUINT8 *p = &StructAfter (gid); + const HBUINT16 *q = &StructAfter (gid); unsigned count = num_axes; for (unsigned i = 0; i < count; i++) @@ -246,8 +246,8 @@ struct VarCompositeGlyphRecord protected: HBUINT16 flags; - HBGlyphID16 gid; HBUINT8 num_axes; + HBGlyphID16 gid; public: DEFINE_SIZE_MIN (5); };