[pango/harfbuzz-ng] [HB] More template goodness
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [pango/harfbuzz-ng] [HB] More template goodness
- Date: Mon, 18 May 2009 05:49:12 -0400 (EDT)
commit 4dbe5b6afe47fec3344c450f3bcf5691118dd78b
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon May 18 01:49:57 2009 -0400
[HB] More template goodness
---
pango/opentype/hb-ot-layout-gsubgpos-private.h | 37 +++++++++--------------
1 files changed, 15 insertions(+), 22 deletions(-)
diff --git a/pango/opentype/hb-ot-layout-gsubgpos-private.h b/pango/opentype/hb-ot-layout-gsubgpos-private.h
index d5709cd..8c061aa 100644
--- a/pango/opentype/hb-ot-layout-gsubgpos-private.h
+++ b/pango/opentype/hb-ot-layout-gsubgpos-private.h
@@ -358,24 +358,19 @@ struct ChainRule {
private:
- USHORT backtrackCount; /* Total number of glyphs in the
- * backtrack sequence (number of
- * glyphs to be matched before the
- * first glyph) */
- USHORT backtrack[]; /* Array of backtracking values
+ ArrayOf<USHORT>
+ backtrack; /* Array of backtracking values
* (to be matched before the input
* sequence) */
USHORT inputCountX; /* Total number of values in the input
* sequence (includes the first glyph) */
USHORT inputX[]; /* Array of input values (start with
* second glyph) */
- USHORT lookaheadCountX; /* Total number of glyphs in the look
- * ahead sequence (number of glyphs to
- * be matched after the input sequence) */
- USHORT lookaheadX[]; /* Array of lookahead values's (to be
+ ArrayOf<USHORT>
+ lookaheadX; /* Array of lookahead values's (to be
* matched after the input sequence) */
- USHORT lookupCountX; /* Number of LookupRecords */
- LookupRecord lookupRecordX[]; /* Array of LookupRecords--in
+ ArrayOf<LookupRecord>
+ lookupRecordX; /* Array of LookupRecords--in
* design order) */
};
ASSERT_SIZE (ChainRule, 8);
@@ -516,23 +511,21 @@ struct ChainContextFormat3 {
private:
USHORT format; /* Format identifier--format = 3 */
- USHORT backtrackGlyphCount; /* Number of glyphs in the backtracking
- * sequence */
- Offset backtrackCoverage[]; /* Array of offsets to coverage tables
+ OffsetArrayOf<Coverage>
+ backtrackCoverage; /* Array of coverage tables
* in backtracking sequence, in glyph
* sequence order */
- USHORT inputGlyphCountX; /* Number of glyphs in input sequence */
- Offset inputCoverageX[]; /* Array of offsets to coverage
+ OffsetArrayOf<Coverage>
+ inputCoverageX ; /* Array of coverage
* tables in input sequence, in glyph
* sequence order */
- USHORT lookaheadGlyphCountX; /* Number of glyphs in lookahead
- * sequence */
- Offset lookaheadCoverageX[]; /* Array of offsets to coverage tables
+ OffsetArrayOf<Coverage>
+ lookaheadCoverageX; /* Array of coverage tables
* in lookahead sequence, in glyph
* sequence order */
- USHORT lookupCountX; /* Number of LookupRecords */
- LookupRecord lookupRecordX[]; /* Array of LookupRecords--in
- * design order */
+ ArrayOf<LookupRecord>
+ lookupRecordX; /* Array of LookupRecords--in
+ * design order) */
};
ASSERT_SIZE (ChainContextFormat3, 10);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]