diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index e3bc268d2..dea69c9ab 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -304,7 +304,7 @@ struct ContextualSubtable bool mark_set; unsigned int mark; const ContextualSubtable *table; - const UnsizedOffsetListOf, HBUINT, false> &subs; + const UnsizedListOfOffset16To, HBUINT, false> &subs; }; bool apply (hb_aat_apply_context_t *c) const @@ -348,7 +348,7 @@ struct ContextualSubtable protected: StateTable machine; - NNOffsetTo, HBUINT, false>, HBUINT> + NNOffsetTo, HBUINT, false>, HBUINT> substitutionTables; public: DEFINE_SIZE_STATIC (20); diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 93efc8bd3..231985a0e 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -528,7 +528,7 @@ using UnsizedArray16OfOffsetTo = UnsizedArrayOf -struct UnsizedOffsetListOf : UnsizedArray16OfOffsetTo +struct UnsizedListOfOffset16To : UnsizedArray16OfOffsetTo { const Type& operator [] (int i_) const { @@ -721,7 +721,7 @@ template using Array32OfOffset32To = ArrayOf -struct OffsetListOf : Array16OfOffset16To +struct List16OfOffset16To : Array16OfOffset16To { const Type& operator [] (int i_) const { @@ -739,7 +739,7 @@ struct OffsetListOf : Array16OfOffset16To bool subset (hb_subset_context_t *c) const { TRACE_SUBSET (this); - struct OffsetListOf *out = c->serializer->embed (*this); + struct List16OfOffset16To *out = c->serializer->embed (*this); if (unlikely (!out)) return_trace (false); unsigned int count = this->len; for (unsigned int i = 0; i < count; i++) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 4b34ae0c2..33cced213 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -1343,10 +1343,10 @@ struct Lookup DEFINE_SIZE_ARRAY (6, subTable); }; -typedef OffsetListOf LookupList; +typedef List16OfOffset16To LookupList; template -struct LookupOffsetList : OffsetListOf +struct LookupOffsetList : List16OfOffset16To { bool subset (hb_subset_context_t *c, hb_subset_layout_context_t *l) const @@ -1367,7 +1367,7 @@ struct LookupOffsetList : OffsetListOf bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); - return_trace (OffsetListOf::sanitize (c, this)); + return_trace (List16OfOffset16To::sanitize (c, this)); } }; @@ -2786,7 +2786,7 @@ struct VariationStore .serialize (c, &(src+src->regions), region_map))) return_trace (false); /* TODO: The following code could be simplified when - * OffsetListOf::subset () can take a custom param to be passed to VarData::serialize () + * List16OfOffset16To::subset () can take a custom param to be passed to VarData::serialize () */ dataSets.len = set_count; unsigned int set_index = 0; diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index 50cf21b5c..6e79cf853 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -2049,7 +2049,7 @@ typedef AnchorMatrix LigatureAttach; /* component-major-- * ordered by class--zero-based. */ /* Array of LigatureAttach tables ordered by LigatureCoverage Index */ -struct LigatureArray : OffsetListOf +struct LigatureArray : List16OfOffset16To { template diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index cd677b236..924e0be65 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -3745,7 +3745,7 @@ struct GSUBGPOS bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); - typedef OffsetListOf TLookupList; + typedef List16OfOffset16To TLookupList; if (unlikely (!(version.sanitize (c) && likely (version.major == 1) && scriptList.sanitize (c, this) && diff --git a/src/hb-ot-layout-jstf-table.hh b/src/hb-ot-layout-jstf-table.hh index ddcfff2e8..92e684bce 100644 --- a/src/hb-ot-layout-jstf-table.hh +++ b/src/hb-ot-layout-jstf-table.hh @@ -45,7 +45,7 @@ typedef IndexArray JstfModList; * JstfMax -- Justification Maximum Table */ -typedef OffsetListOf JstfMax; +typedef List16OfOffset16To JstfMax; /* @@ -121,13 +121,13 @@ struct JstfPriority * JstfLangSys -- Justification Language System Table */ -struct JstfLangSys : OffsetListOf +struct JstfLangSys : List16OfOffset16To { bool sanitize (hb_sanitize_context_t *c, const Record_sanitize_closure_t * = nullptr) const { TRACE_SANITIZE (this); - return_trace (OffsetListOf::sanitize (c)); + return_trace (List16OfOffset16To::sanitize (c)); } };