From 65621723815138150e8a6354413ed14d53cf35b5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 28 Oct 2018 16:27:18 -0700 Subject: [PATCH] [sbix] Use LOffsetLArrayOf<> --- src/hb-open-type.hh | 2 ++ src/hb-ot-color-sbix-table.hh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 8d17f3ed1..207f36b61 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -541,6 +541,8 @@ typedef ArrayOf PString; /* Array of Offset's */ template struct OffsetArrayOf : ArrayOf > {}; +template +struct LOffsetLArrayOf : 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 13ed07835..9155db645 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -271,7 +271,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). */ - LArrayOf > + LOffsetLArrayOf strikes; /* Offsets from the beginning of the 'sbix' * table to data for each individual bitmap strike. */ public: