minor, use LOffsetTo and LArrayOf whenever possible (#966)

This commit is contained in:
Ebrahim Byagowi 2018-04-11 18:36:09 +04:30 committed by GitHub
parent cb3fa70cd4
commit b799fc8077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 8 deletions

View File

@ -302,8 +302,9 @@ struct ContextualSubtable
} }
protected: protected:
StateTable<EntryData> machine; StateTable<EntryData>
OffsetTo<UnsizedOffsetListOf<Lookup<GlyphID>, HBUINT32>, HBUINT32> machine;
LOffsetTo<UnsizedOffsetListOf<Lookup<GlyphID>, HBUINT32> >
substitutionTables; substitutionTables;
public: public:
DEFINE_SIZE_STATIC (20); DEFINE_SIZE_STATIC (20);
@ -461,7 +462,8 @@ struct LigatureSubtable
} }
protected: protected:
StateTable<EntryData> machine; StateTable<EntryData>
machine;
LOffsetTo<UnsizedArrayOf<HBUINT32> > LOffsetTo<UnsizedArrayOf<HBUINT32> >
ligAction; /* Offset to the ligature action table. */ ligAction; /* Offset to the ligature action table. */
LOffsetTo<UnsizedArrayOf<HBUINT16> > LOffsetTo<UnsizedArrayOf<HBUINT16> >

View File

@ -67,7 +67,7 @@ struct ltag
protected: protected:
HBUINT32 version; /* Table version; currently 1 */ HBUINT32 version; /* Table version; currently 1 */
HBUINT32 flags; /* Table flags; currently none defined */ HBUINT32 flags; /* Table flags; currently none defined */
ArrayOf<FTStringRange, HBUINT32> LArrayOf<FTStringRange>
tagRanges; /* Range for each tag's string */ tagRanges; /* Range for each tag's string */
public: public:
DEFINE_SIZE_ARRAY (12, tagRanges); DEFINE_SIZE_ARRAY (12, tagRanges);

View File

@ -234,7 +234,7 @@ struct TTCHeaderVersion1
Tag ttcTag; /* TrueType Collection ID string: 'ttcf' */ Tag ttcTag; /* TrueType Collection ID string: 'ttcf' */
FixedVersion<>version; /* Version of the TTC Header (1.0), FixedVersion<>version; /* Version of the TTC Header (1.0),
* 0x00010000u */ * 0x00010000u */
ArrayOf<LOffsetTo<OffsetTable>, HBUINT32> LArrayOf<LOffsetTo<OffsetTable> >
table; /* Array of offsets to the OffsetTable for each font table; /* Array of offsets to the OffsetTable for each font
* from the beginning of the file */ * from the beginning of the file */
public: public: