Hi,
While trying to write some GSUB context substitution rules with TTX,
I came across some bugs in ttlib. Here is a patch for that. My
examples are in
http://www.arbornet.org/~klchxbec/example.ttx
Please include this in your next release and thanks for the nice
tool.
--- fonttools/Lib/fontTools/ttLib/tables/otData.py.orig Fri Aug 1 14:04:50 2003
+++ fonttools/Lib/fontTools/ttLib/tables/otData.py Fri Aug 1 15:42:55 2003
@@ -313,7 +313,7 @@
('uint16', 'InputGlyphCount', None, None, 'Total number of glyphs in the input sequence (includes the first glyph)'),
('GlyphID', 'Input', 'InputGlyphCount', -1, 'Array of input GlyphIDs (start with second glyph)'),
('uint16', 'LookaheadGlyphCount', None, None, 'Total number of glyphs in the look ahead sequence (number of glyphs to be matched after the input sequence)'),
- ('GlyphID', 'LookAhead', 'LookAheadGlyphCount', 0, "Array of lookahead GlyphID's (to be matched after the input sequence)"),
+ ('GlyphID', 'LookAhead', 'LookaheadGlyphCount', 0, "Array of lookahead GlyphID's (to be matched after the input sequence)"),
('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'),
('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of PosLookupRecords (in design order)'),
]),
@@ -339,7 +339,7 @@
('uint16', 'InputGlyphCount', None, None, 'Total number of classes in the input sequence (includes the first class)'),
('uint16', 'Input', 'InputGlyphCount', -1, 'Array of input classes(start with second class; to be matched with the input glyph sequence)'),
('uint16', 'LookaheadGlyphCount', None, None, 'Total number of classes in the look ahead sequence (number of classes to be matched after the input sequence)'),
- ('uint16', 'LookAhead', 'LookAheadGlyphCount', 0, 'Array of lookahead classes(to be matched after the input sequence)'),
+ ('uint16', 'LookAhead', 'LookaheadGlyphCount', 0, 'Array of lookahead classes(to be matched after the input sequence)'),
('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'),
('struct', 'PosLookupRecord', 'ChainPosCount', 0, 'Array of PosLookupRecords (in design order)'),
]),
@@ -499,8 +499,8 @@
('uint16', 'SubstFormat', None, None, 'Format identifier-format = 2'),
('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
('Offset', 'ClassDef', None, None, 'Offset to glyph ClassDef table-from beginning of Substitution table'),
- ('uint16', 'SubClassSetCnt', None, None, 'Number of SubClassSet tables'),
- ('Offset', 'SubClassSet', 'SubClassSetCnt', 0, 'Array of offsets to SubClassSet tables-from beginning of Substitution table-ordered by class-may be NULL'),
+ ('uint16', 'SubClassSetCount', None, None, 'Number of SubClassSet tables'),
+ ('Offset', 'SubClassSet', 'SubClassSetCount', 0, 'Array of offsets to SubClassSet tables-from beginning of Substitution table-ordered by class-may be NULL'),
]),
('SubClassSet', [
@@ -541,7 +541,7 @@
('uint16', 'InputGlyphCount', None, None, 'Total number of glyphs in the input sequence (includes the first glyph)'),
('GlyphID', 'Input', 'InputGlyphCount', -1, 'Array of input GlyphIDs (start with second glyph)'),
('uint16', 'LookaheadGlyphCount', None, None, 'Total number of glyphs in the look ahead sequence (number of glyphs to be matched after the input sequence)'),
- ('GlyphID', 'Lookahead', 'LookAheadGlyphCount', 0, "Array of lookahead GlyphID's (to be matched after the input sequence)"),
+ ('GlyphID', 'Lookahead', 'LookaheadGlyphCount', 0, "Array of lookahead GlyphID's (to be matched after the input sequence)"),
('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'),
('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords (in design order)'),
]),
@@ -557,7 +557,7 @@
]),
('ChainSubClassSet', [
- ('uint16', 'ChainSubClassRuleCnt', None, None, 'Number of ChainSubClassRule tables'),
+ ('uint16', 'ChainSubClassRuleCount', None, None, 'Number of ChainSubClassRule tables'),
('Offset', 'ChainSubClassRule', 'ChainSubClassRuleCount', 0, 'Array of offsets to ChainSubClassRule tables-from beginning of ChainSubClassSet-ordered by preference'),
]),
@@ -567,7 +567,7 @@
('uint16', 'InputGlyphCount', None, None, 'Total number of classes in the input sequence (includes the first class)'),
('uint16', 'Input', 'InputGlyphCount', -1, 'Array of input classes(start with second class; to be matched with the input glyph sequence)'),
('uint16', 'LookaheadGlyphCount', None, None, 'Total number of classes in the look ahead sequence (number of classes to be matched after the input sequence)'),
- ('uint16', 'LookAhead', 'LookAheadGlyphCount', 0, 'Array of lookahead classes(to be matched after the input sequence)'),
+ ('uint16', 'LookAhead', 'LookaheadGlyphCount', 0, 'Array of lookahead classes(to be matched after the input sequence)'),
('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'),
('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords (in design order)'),
]),
|