diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 92a99aed3..b9b397a3e 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -715,12 +715,9 @@ using LArrayOf = ArrayOf; using PString = ArrayOf; /* Array of Offset's */ -template -using OffsetArrayOf = ArrayOf>; -template -using LOffsetArrayOf = ArrayOf>; -template -using LOffsetLArrayOf = ArrayOf, HBUINT32>; +template using OffsetArrayOf = ArrayOf, HBUINT16>; +template using Array16OfOffset32To = ArrayOf>; +template using Array32OfOffset32To = ArrayOf, HBUINT32>; /* Array of offsets relative to the beginning of the array itself. */ template diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index 92f104e46..af1e4a5db 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -352,7 +352,7 @@ struct sbix { TRACE_SERIALIZE (this); - auto *out = c->serializer->start_embed> (); + auto *out = c->serializer->start_embed> (); if (unlikely (!out)) return_trace (false); if (unlikely (!c->serializer->extend_min (out))) return_trace (false); @@ -400,7 +400,7 @@ struct sbix HBUINT16 version; /* Table version number — set to 1 */ HBUINT16 flags; /* Bit 0: Set to 1. Bit 1: Draw outlines. * Bits 2 to 15: reserved (set to 0). */ - LOffsetLArrayOf + Array32OfOffset32To strikes; /* Offsets from the beginning of the 'sbix' * table to data for each individual bitmap strike. */ public: diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 1b4e77176..913d4f3c4 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -2862,7 +2862,7 @@ struct VariationStore protected: HBUINT16 format; Offset32To regions; - LOffsetArrayOf dataSets; + Array16OfOffset32To dataSets; public: DEFINE_SIZE_ARRAY (8, dataSets); }; @@ -2975,7 +2975,7 @@ struct ConditionSet } protected: - LOffsetArrayOf conditions; + Array16OfOffset32To conditions; public: DEFINE_SIZE_ARRAY (2, conditions); };