[ot-color/SVG] Minor (#878)

This commit is contained in:
Ebrahim Byagowi 2018-03-12 14:00:11 +03:30 committed by GitHub
parent fb0f3e3767
commit 28f25f32fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 8 deletions

View File

@ -49,10 +49,15 @@ struct SVGDocumentIndexEntry
}
protected:
HBUINT16 startGlyphID;
HBUINT16 endGlyphID;
LOffsetTo<const uint8_t *> svgDoc;
HBUINT32 svgDocLength;
HBUINT16 startGlyphID; /* The first glyph ID in the range described by
* this index entry. */
HBUINT16 endGlyphID; /* The last glyph ID in the range described by
* this index entry. Must be >= startGlyphID. */
LOffsetTo<const uint8_t *>
svgDoc; /* Offset from the beginning of the SVG Document Index
* to an SVG document. Must be non-zero. */
HBUINT32 svgDocLength; /* Length of the SVG document.
* Must be non-zero. */
public:
DEFINE_SIZE_STATIC (12);
};
@ -81,7 +86,8 @@ struct SVGDocumentIndex
// }
protected:
ArrayOf<SVGDocumentIndexEntry> entries;
ArrayOf<SVGDocumentIndexEntry>
entries; /* Array of SVG Document Index Entries. */
public:
DEFINE_SIZE_ARRAY (2, entries);
};
@ -98,9 +104,11 @@ struct SVG
}
protected:
HBUINT16 version;
LOffsetTo<SVGDocumentIndex> svgDocIndex;
HBUINT32 reserved;
HBUINT16 version; /* Table version (starting at 0). */
LOffsetTo<SVGDocumentIndex>
svgDocIndex; /* Offset (relative to the start of the SVG table) to the
* SVG Documents Index. Must be non-zero. */
HBUINT32 reserved; /* Set to 0. */
public:
DEFINE_SIZE_STATIC (10);
};