From df7eebf40a080655bd56795b5d3c57f4cce03f08 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Jul 2022 14:14:55 -0600 Subject: [PATCH] [>64k:layout] Fix layout of RangeRecord https://github.com/be-fonts/boring-expansion-spec/issues/30 --- src/hb-ot-layout-common.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 8cb359e6d..5e533061b 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -557,9 +557,9 @@ struct RangeRecord typename Types::HBGlyphID first; /* First GlyphID in the range */ typename Types::HBGlyphID last; /* Last GlyphID in the range */ - typename Types::HBUINT value; /* Value */ + HBUINT16 value; /* Value */ public: - DEFINE_SIZE_STATIC (3 * Types::size); + DEFINE_SIZE_STATIC (2 + 2 * Types::size); }; DECLARE_NULL_NAMESPACE_BYTES_TEMPLATE1 (OT, RangeRecord, 9);