minor, use LOffsetTo and LArrayOf whenever possible (#966)
This commit is contained in:
parent
cb3fa70cd4
commit
b799fc8077
|
@ -302,9 +302,10 @@ struct ContextualSubtable
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
StateTable<EntryData> machine;
|
StateTable<EntryData>
|
||||||
OffsetTo<UnsizedOffsetListOf<Lookup<GlyphID>, HBUINT32>, HBUINT32>
|
machine;
|
||||||
substitutionTables;
|
LOffsetTo<UnsizedOffsetListOf<Lookup<GlyphID>, HBUINT32> >
|
||||||
|
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> >
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -284,8 +284,8 @@ struct CmapSubtableLongSegmented
|
||||||
protected:
|
protected:
|
||||||
HBUINT16 format; /* Subtable format; set to 12. */
|
HBUINT16 format; /* Subtable format; set to 12. */
|
||||||
HBUINT16 reservedZ; /* Reserved; set to 0. */
|
HBUINT16 reservedZ; /* Reserved; set to 0. */
|
||||||
HBUINT32 lengthZ; /* Byte length of this subtable. */
|
HBUINT32 lengthZ; /* Byte length of this subtable. */
|
||||||
HBUINT32 languageZ; /* Ignore. */
|
HBUINT32 languageZ; /* Ignore. */
|
||||||
SortedArrayOf<CmapSubtableLongGroup, HBUINT32>
|
SortedArrayOf<CmapSubtableLongGroup, HBUINT32>
|
||||||
groups; /* Groupings. */
|
groups; /* Groupings. */
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue