otData.py revision 823f8cd15f16bb9dc3991c2672f16dd90579711b
1otData = [
2
3	#
4	# common (generated from chapter2.htm)
5	#
6
7	('ScriptList', [
8		('uint16', 'ScriptCount', None, None, 'Number of ScriptRecords'),
9		('struct', 'ScriptRecord', 'ScriptCount', 0, 'Array of ScriptRecords -listed alphabetically by ScriptTag'),
10	]),
11
12	('ScriptRecord', [
13		('Tag', 'ScriptTag', None, None, '4-byte ScriptTag identifier'),
14		('Offset', 'Script', None, None, 'Offset to Script table-from beginning of ScriptList'),
15	]),
16
17	('Script', [
18		('Offset', 'DefaultLangSys', None, None, 'Offset to DefaultLangSys table-from beginning of Script table-may be NULL'),
19		('uint16', 'LangSysCount', None, None, 'Number of LangSysRecords for this script-excluding the DefaultLangSys'),
20		('struct', 'LangSysRecord', 'LangSysCount', 0, 'Array of LangSysRecords-listed alphabetically by LangSysTag'),
21	]),
22
23	('LangSysRecord', [
24		('Tag', 'LangSysTag', None, None, '4-byte LangSysTag identifier'),
25		('Offset', 'LangSys', None, None, 'Offset to LangSys table-from beginning of Script table'),
26	]),
27
28	('LangSys', [
29		('Offset', 'LookupOrder', None, None, '= NULL (reserved for an offset to a reordering table)'),
30		('uint16', 'ReqFeatureIndex', None, None, 'Index of a feature required for this language system- if no required features = 0xFFFF'),
31		('uint16', 'FeatureCount', None, None, 'Number of FeatureIndex values for this language system-excludes the required feature'),
32		('uint16', 'FeatureIndex', 'FeatureCount', 0, 'Array of indices into the FeatureList-in arbitrary order'),
33	]),
34
35	('FeatureList', [
36		('uint16', 'FeatureCount', None, None, 'Number of FeatureRecords in this table'),
37		('struct', 'FeatureRecord', 'FeatureCount', 0, 'Array of FeatureRecords-zero-based (first feature has FeatureIndex = 0)-listed alphabetically by FeatureTag'),
38	]),
39
40	('FeatureRecord', [
41		('Tag', 'FeatureTag', None, None, '4-byte feature identification tag'),
42		('Offset', 'Feature', None, None, 'Offset to Feature table-from beginning of FeatureList'),
43	]),
44
45	('Feature', [
46		('Offset', 'FeatureParams', None, None, '= NULL (reserved for offset to FeatureParams)'),
47		('uint16', 'LookupCount', None, None, 'Number of LookupList indices for this feature'),
48		('uint16', 'LookupListIndex', 'LookupCount', 0, 'Array of LookupList indices for this feature -zero-based (first lookup is LookupListIndex = 0)'),
49	]),
50
51	('LookupList', [
52		('uint16', 'LookupCount', None, None, 'Number of lookups in this table'),
53		('Offset', 'Lookup', 'LookupCount', 0, 'Array of offsets to Lookup tables-from beginning of LookupList -zero based (first lookup is Lookup index = 0)'),
54	]),
55
56	('Lookup', [
57		('uint16', 'LookupType', None, None, 'Different enumerations for GSUB and GPOS'),
58		('uint16', 'LookupFlag', None, None, 'Lookup qualifiers'),
59		('uint16', 'SubTableCount', None, None, 'Number of SubTables for this lookup'),
60		('Offset', 'SubTable', 'SubTableCount', 0, 'Array of offsets to SubTables-from beginning of Lookup table'),
61	]),
62
63	('CoverageFormat1', [
64		('uint16', 'CoverageFormat', None, None, 'Format identifier-format = 1'),
65		('uint16', 'GlyphCount', None, None, 'Number of glyphs in the GlyphArray'),
66		('GlyphID', 'GlyphArray', 'GlyphCount', 0, 'Array of GlyphIDs-in numerical order'),
67	]),
68
69	('CoverageFormat2', [
70		('uint16', 'CoverageFormat', None, None, 'Format identifier-format = 2'),
71		('uint16', 'RangeCount', None, None, 'Number of RangeRecords'),
72		('struct', 'RangeRecord', 'RangeCount', 0, 'Array of glyph ranges-ordered by Start GlyphID'),
73	]),
74
75	('RangeRecord', [
76		('GlyphID', 'Start', None, None, 'First GlyphID in the range'),
77		('GlyphID', 'End', None, None, 'Last GlyphID in the range'),
78		('uint16', 'StartCoverageIndex', None, None, 'Coverage Index of first GlyphID in range'),
79	]),
80
81	('ClassDefFormat1', [
82		('uint16', 'ClassFormat', None, None, 'Format identifier-format = 1'),
83		('GlyphID', 'StartGlyph', None, None, 'First GlyphID of the ClassValueArray'),
84		('uint16', 'GlyphCount', None, None, 'Size of the ClassValueArray'),
85		('uint16', 'ClassValueArray', 'GlyphCount', 0, 'Array of Class Values-one per GlyphID'),
86	]),
87
88	('ClassDefFormat2', [
89		('uint16', 'ClassFormat', None, None, 'Format identifier-format = 2'),
90		('uint16', 'ClassRangeCount', None, None, 'Number of ClassRangeRecords'),
91		('struct', 'ClassRangeRecord', 'ClassRangeCount', 0, 'Array of ClassRangeRecords-ordered by Start GlyphID'),
92	]),
93
94	('ClassRangeRecord', [
95		('GlyphID', 'Start', None, None, 'First GlyphID in the range'),
96		('GlyphID', 'End', None, None, 'Last GlyphID in the range'),
97		('uint16', 'Class', None, None, 'Applied to all glyphs in the range'),
98	]),
99
100	('Device', [
101		('uint16', 'StartSize', None, None, 'Smallest size to correct-in ppem'),
102		('uint16', 'EndSize', None, None, 'Largest size to correct-in ppem'),
103		('uint16', 'DeltaFormat', None, None, 'Format of DeltaValue array data: 1, 2, or 3'),
104		('uint16', 'DeltaValue', '', 0, 'Array of compressed data'),
105	]),
106
107
108	#
109	# gpos (generated from gpos.htm)
110	#
111
112	('GPOS', [
113		('Fixed', 'Version', None, None, 'Version of the GPOS table-initially = 0x00010000'),
114		('Offset', 'ScriptList', None, None, 'Offset to ScriptList table-from beginning of GPOS table'),
115		('Offset', 'FeatureList', None, None, 'Offset to FeatureList table-from beginning of GPOS table'),
116		('Offset', 'LookupList', None, None, 'Offset to LookupList table-from beginning of GPOS table'),
117	]),
118
119	('SinglePosFormat1', [
120		('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'),
121		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of SinglePos subtable'),
122		('uint16', 'ValueFormat', None, None, 'Defines the types of data in the ValueRecord'),
123		('ValueRecord', 'Value', None, None, 'Defines positioning value(s)-applied to all glyphs in the Coverage table'),
124	]),
125
126	('SinglePosFormat2', [
127		('uint16', 'PosFormat', None, None, 'Format identifier-format = 2'),
128		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of SinglePos subtable'),
129		('uint16', 'ValueFormat', None, None, 'Defines the types of data in the ValueRecord'),
130		('uint16', 'ValueCount', None, None, 'Number of ValueRecords'),
131		('ValueRecord', 'Value', 'ValueCount', 0, 'Array of ValueRecords-positioning values applied to glyphs'),
132	]),
133
134	('PairPosFormat1', [
135		('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'),
136		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of PairPos subtable-only the first glyph in each pair'),
137		('uint16', 'ValueFormat1', None, None, 'Defines the types of data in ValueRecord1-for the first glyph in the pair -may be zero (0)'),
138		('uint16', 'ValueFormat2', None, None, 'Defines the types of data in ValueRecord2-for the second glyph in the pair -may be zero (0)'),
139		('uint16', 'PairSetCount', None, None, 'Number of PairSet tables'),
140		('Offset', 'PairSet', 'PairSetCount', 0, 'Array of offsets to PairSet tables-from beginning of PairPos subtable-ordered by Coverage Index'),
141	]),
142
143	('PairSet', [
144		('uint16', 'PairValueCount', None, None, 'Number of PairValueRecords'),
145		('struct', 'PairValueRecord', 'PairValueCount', 0, 'Array of PairValueRecords-ordered by GlyphID of the second glyph'),
146	]),
147
148	('PairValueRecord', [
149		('GlyphID', 'SecondGlyph', None, None, 'GlyphID of second glyph in the pair-first glyph is listed in the Coverage table'),
150		('ValueRecord', 'Value1', None, None, 'Positioning data for the first glyph in the pair'),
151		('ValueRecord', 'Value2', None, None, 'Positioning data for the second glyph in the pair'),
152	]),
153
154	('PairPosFormat2', [
155		('uint16', 'PosFormat', None, None, 'Format identifier-format = 2'),
156		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of PairPos subtable-for the first glyph of the pair'),
157		('uint16', 'ValueFormat1', None, None, 'ValueRecord definition-for the first glyph of the pair-may be zero (0)'),
158		('uint16', 'ValueFormat2', None, None, 'ValueRecord definition-for the second glyph of the pair-may be zero (0)'),
159		('Offset', 'ClassDef1', None, None, 'Offset to ClassDef table-from beginning of PairPos subtable-for the first glyph of the pair'),
160		('Offset', 'ClassDef2', None, None, 'Offset to ClassDef table-from beginning of PairPos subtable-for the second glyph of the pair'),
161		('uint16', 'Class1Count', None, None, 'Number of classes in ClassDef1 table-includes Class0'),
162		('uint16', 'Class2Count', None, None, 'Number of classes in ClassDef2 table-includes Class0'),
163		('struct', 'Class1Record', 'Class1Count', 0, 'Array of Class1 records-ordered by Class1'),
164	]),
165
166	('Class1Record', [
167		('struct', 'Class2Record', 'Class2Count', 0, 'Array of Class2 records-ordered by Class2'),
168	]),
169
170	('Class2Record', [
171		('ValueRecord', 'Value1', None, None, 'Positioning for first glyph-empty if ValueFormat1 = 0'),
172		('ValueRecord', 'Value2', None, None, 'Positioning for second glyph-empty if ValueFormat2 = 0'),
173	]),
174
175	('CursivePosFormat1', [
176		('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'),
177		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of CursivePos subtable'),
178		('uint16', 'EntryExitCount', None, None, 'Number of EntryExit records'),
179		('struct', 'EntryExitRecord', 'EntryExitCount', 0, 'Array of EntryExit records-in Coverage Index order'),
180	]),
181
182	('EntryExitRecord', [
183		('Offset', 'EntryAnchor', None, None, 'Offset to EntryAnchor table-from beginning of CursivePos subtable-may be NULL'),
184		('Offset', 'ExitAnchor', None, None, 'Offset to ExitAnchor table-from beginning of CursivePos subtable-may be NULL'),
185	]),
186
187	('MarkBasePosFormat1', [
188		('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'),
189		('Offset', 'MarkCoverage', None, None, 'Offset to MarkCoverage table-from beginning of MarkBasePos subtable'),
190		('Offset', 'BaseCoverage', None, None, 'Offset to BaseCoverage table-from beginning of MarkBasePos subtable'),
191		('uint16', 'ClassCount', None, None, 'Number of classes defined for marks'),
192		('Offset', 'MarkArray', None, None, 'Offset to MarkArray table-from beginning of MarkBasePos subtable'),
193		('Offset', 'BaseArray', None, None, 'Offset to BaseArray table-from beginning of MarkBasePos subtable'),
194	]),
195
196	('BaseArray', [
197		('uint16', 'BaseCount', None, None, 'Number of BaseRecords'),
198		('struct', 'BaseRecord', 'BaseCount', 0, 'Array of BaseRecords-in order of BaseCoverage Index'),
199	]),
200
201	('BaseRecord', [
202		('Offset', 'BaseAnchor', 'ClassCount', 0, 'Array of offsets (one per class) to Anchor tables-from beginning of BaseArray table-ordered by class-zero-based'),
203	]),
204
205	('MarkLigPosFormat1', [
206		('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'),
207		('Offset', 'MarkCoverage', None, None, 'Offset to Mark Coverage table-from beginning of MarkLigPos subtable'),
208		('Offset', 'LigatureCoverage', None, None, 'Offset to Ligature Coverage table-from beginning of MarkLigPos subtable'),
209		('uint16', 'ClassCount', None, None, 'Number of defined mark classes'),
210		('Offset', 'MarkArray', None, None, 'Offset to MarkArray table-from beginning of MarkLigPos subtable'),
211		('Offset', 'LigatureArray', None, None, 'Offset to LigatureArray table-from beginning of MarkLigPos subtable'),
212	]),
213
214	('LigatureArray', [
215		('uint16', 'LigatureCount', None, None, 'Number of LigatureAttach table offsets'),
216		('Offset', 'LigatureAttach', 'LigatureCount', 0, 'Array of offsets to LigatureAttach tables-from beginning of LigatureArray table-ordered by LigatureCoverage Index'),
217	]),
218
219	('LigatureAttach', [
220		('uint16', 'ComponentCount', None, None, 'Number of ComponentRecords in this ligature'),
221		('struct', 'ComponentRecord', 'ComponentCount', 0, 'Array of Component records-ordered in writing direction'),
222	]),
223
224	('ComponentRecord', [
225		('Offset', 'LigatureAnchor', 'ClassCount', 0, 'Array of offsets (one per class) to Anchor tables-from beginning of LigatureAttach table-ordered by class-NULL if a component does not have an attachment for a class-zero-based array'),
226	]),
227
228	('MarkMarkPosFormat1', [
229		('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'),
230		('Offset', 'Mark1Coverage', None, None, 'Offset to Combining Mark Coverage table-from beginning of MarkMarkPos subtable'),
231		('Offset', 'Mark2Coverage', None, None, 'Offset to Base Mark Coverage table-from beginning of MarkMarkPos subtable'),
232		('uint16', 'ClassCount', None, None, 'Number of Combining Mark classes defined'),
233		('Offset', 'Mark1Array', None, None, 'Offset to MarkArray table for Mark1-from beginning of MarkMarkPos subtable'),
234		('Offset', 'Mark2Array', None, None, 'Offset to Mark2Array table for Mark2-from beginning of MarkMarkPos subtable'),
235	]),
236
237	('Mark2Array', [
238		('uint16', 'Mark2Count', None, None, 'Number of Mark2 records'),
239		('struct', 'Mark2Record', 'Mark2Count', 0, 'Array of Mark2 records-in Coverage order'),
240	]),
241
242	('Mark2Record', [
243		('Offset', 'Mark2Anchor', 'ClassCount', 0, 'Array of offsets (one per class) to Anchor tables-from beginning of Mark2Array table-zero-based array'),
244	]),
245
246	('PosLookupRecord', [
247		('uint16', 'SequenceIndex', None, None, 'Index to input glyph sequence-first glyph = 0'),
248		('uint16', 'LookupListIndex', None, None, 'Lookup to apply to that position-zero-based'),
249	]),
250
251	('ContextPosFormat1', [
252		('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'),
253		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of ContextPos subtable'),
254		('uint16', 'PosRuleSetCount', None, None, 'Number of PosRuleSet tables'),
255		('Offset', 'PosRuleSet', 'PosRuleSetCount', 0, 'Array of offsets to PosRuleSet tables-from beginning of ContextPos subtable-ordered by Coverage Index'),
256	]),
257
258	('PosRuleSet', [
259		('uint16', 'PosRuleCount', None, None, 'Number of PosRule tables'),
260		('Offset', 'PosRule', 'PosRuleCount', 0, 'Array of offsets to PosRule tables-from beginning of PosRuleSet-ordered by preference'),
261	]),
262
263	('PosRule', [
264		('uint16', 'GlyphCount', None, None, 'Number of glyphs in the Input glyph sequence'),
265		('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'),
266		('GlyphID', 'Input', 'GlyphCount', -1, 'Array of input GlyphIDs-starting with the second glyph'),
267		('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of positioning lookups-in design order'),
268	]),
269
270	('ContextPosFormat2', [
271		('uint16', 'PosFormat', None, None, 'Format identifier-format = 2'),
272		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of ContextPos subtable'),
273		('Offset', 'ClassDef', None, None, 'Offset to ClassDef table-from beginning of ContextPos subtable'),
274		('uint16', 'PosClassSetCount', None, None, 'Number of PosClassSet tables'),
275		('Offset', 'PosClassSet', 'PosClassSetCount', 0, 'Array of offsets to PosClassSet tables-from beginning of ContextPos subtable-ordered by class-may be NULL'),
276	]),
277
278	('PosClassSet', [
279		('uint16', 'PosClassRuleCount', None, None, 'Number of PosClassRule tables'),
280		('Offset', 'PosClassRule', 'PosClassRuleCount', 0, 'Array of offsets to PosClassRule tables-from beginning of PosClassSet-ordered by preference'),
281	]),
282
283	('PosClassRule', [
284		('uint16', 'GlyphCount', None, None, 'Number of glyphs to be matched'),
285		('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'),
286		('uint16', 'Class', 'GlyphCount', -1, 'Array of classes-beginning with the second class-to be matched to the input glyph sequence'),
287		('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of positioning lookups-in design order'),
288	]),
289
290	('ContextPosFormat3', [
291		('uint16', 'PosFormat', None, None, 'Format identifier-format = 3'),
292		('uint16', 'GlyphCount', None, None, 'Number of glyphs in the input sequence'),
293		('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'),
294		('Offset', 'Coverage', 'GlyphCount', 0, 'Array of offsets to Coverage tables-from beginning of ContextPos subtable'),
295		('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of positioning lookups-in design order'),
296	]),
297
298	('ChainContextPosFormat1', [
299		('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'),
300		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of ContextPos subtable'),
301		('uint16', 'ChainPosRuleSetCount', None, None, 'Number of ChainPosRuleSet tables'),
302		('Offset', 'ChainPosRuleSet', 'ChainPosRuleSetCount', 0, 'Array of offsets to ChainPosRuleSet tables-from beginning of ContextPos subtable-ordered by Coverage Index'),
303	]),
304
305	('ChainPosRuleSet', [
306		('uint16', 'ChainPosRuleCount', None, None, 'Number of ChainPosRule tables'),
307		('Offset', 'ChainPosRule', 'ChainPosRuleCount', 0, 'Array of offsets to ChainPosRule tables-from beginning of ChainPosRuleSet-ordered by preference'),
308	]),
309
310	('ChainPosRule', [
311		('uint16', 'BacktrackGlyphCount', None, None, 'Total number of glyphs in the backtrack sequence (number of glyphs to be matched before the first glyph)'),
312		('GlyphID', 'Backtrack', 'BacktrackGlyphCount', 0, "Array of backtracking GlyphID's (to be matched before the input sequence)"),
313		('uint16', 'InputGlyphCount', None, None, 'Total number of glyphs in the input sequence (includes the first glyph)'),
314		('GlyphID', 'Input', 'InputGlyphCount', -1, 'Array of input GlyphIDs (start with second glyph)'),
315		('uint16', 'LookAheadGlyphCount', None, None, 'Total number of glyphs in the look ahead sequence (number of glyphs to be matched after the input sequence)'),
316		('GlyphID', 'LookAhead', 'LookAheadGlyphCount', 0, "Array of lookahead GlyphID's (to be matched after the input sequence)"),
317		('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'),
318		('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of PosLookupRecords (in design order)'),
319	]),
320
321	('ChainContextPosFormat2', [
322		('uint16', 'PosFormat', None, None, 'Format identifier-format = 2'),
323		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of ChainContextPos subtable'),
324		('Offset', 'BacktrackClassDef', None, None, 'Offset to ClassDef table containing backtrack sequence context-from beginning of ChainContextPos subtable'),
325		('Offset', 'InputClassDef', None, None, 'Offset to ClassDef table containing input sequence context-from beginning of ChainContextPos subtable'),
326		('Offset', 'LookAheadClassDef', None, None, 'Offset to ClassDef table containing lookahead sequence context-from beginning of ChainContextPos subtable'),
327		('uint16', 'ChainPosClassSetCount', None, None, 'Number of ChainPosClassSet tables'),
328		('Offset', 'ChainPosClassSet', 'ChainPosClassSetCount', 0, 'Array of offsets to ChainPosClassSet tables-from beginning of ChainContextPos subtable-ordered by input class-may be NULL'),
329	]),
330
331	('ChainPosClassSet', [
332		('uint16', 'ChainPosClassRuleCount', None, None, 'Number of ChainPosClassRule tables'),
333		('Offset', 'ChainPosClassRule', 'ChainPosClassRuleCount', 0, 'Array of offsets to ChainPosClassRule tables-from beginning of ChainPosClassSet-ordered by preference'),
334	]),
335
336	('ChainPosClassRule', [
337		('uint16', 'BacktrackGlyphCount', None, None, 'Total number of glyphs in the backtrack sequence (number of glyphs to be matched before the first glyph)'),
338		('uint16', 'Backtrack', 'BacktrackGlyphCount', 0, 'Array of backtracking classes(to be matched before the input sequence)'),
339		('uint16', 'InputGlyphCount', None, None, 'Total number of classes in the input sequence (includes the first class)'),
340		('uint16', 'Input', 'InputGlyphCount', -1, 'Array of input classes(start with second class; to be matched with the input glyph sequence)'),
341		('uint16', 'LookAheadGlyphCount', None, None, 'Total number of classes in the look ahead sequence (number of classes to be matched after the input sequence)'),
342		('uint16', 'LookAhead', 'LookAheadGlyphCount', 0, 'Array of lookahead classes(to be matched after the input sequence)'),
343		('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'),
344		('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of PosLookupRecords (in design order)'),
345	]),
346
347	('ChainContextPosFormat3', [
348		('uint16', 'PosFormat', None, None, 'Format identifier-format = 3'),
349		('uint16', 'BacktrackGlyphCount', None, None, 'Number of glyphs in the backtracking sequence'),
350		('Offset', 'BacktrackCoverage', 'BacktrackGlyphCount', 0, 'Array of offsets to coverage tables in backtracking sequence, in glyph sequence order'),
351		('uint16', 'InputGlyphCount', None, None, 'Number of glyphs in input sequence'),
352		('Offset', 'InputCoverage', 'InputGlyphCount', 0, 'Array of offsets to coverage tables in input sequence, in glyph sequence order'),
353		('uint16', 'LookAheadGlyphCount', None, None, 'Number of glyphs in lookahead sequence'),
354		('Offset', 'LookAheadCoverage', 'LookAheadGlyphCount', 0, 'Array of offsets to coverage tables in lookahead sequence, in glyph sequence order'),
355		('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'),
356		('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of PosLookupRecords,in design order'),
357	]),
358
359	('ExtensionPosFormat1', [
360		('USHORT', 'ExtFormat', None, None, 'Format identifier. Set to 1.'),
361		('USHORT', 'ExtensionLookupType', None, None, 'Lookup type of subtable referenced by ExtensionOffset (i.e. the extension subtable).'),
362		('LOffset', 'ExtSubTable', None, None, 'Array of offsets to Lookup tables-from beginning of LookupList -zero based (first lookup is Lookup index = 0)'),
363	]),
364
365	('ValueRecord', [
366		('int16', 'XPlacement', None, None, 'Horizontal adjustment for placement-in design units'),
367		('int16', 'YPlacement', None, None, 'Vertical adjustment for placement-in design units'),
368		('int16', 'XAdvance', None, None, 'Horizontal adjustment for advance-in design units (only used for horizontal writing)'),
369		('int16', 'YAdvance', None, None, 'Vertical adjustment for advance-in design units (only used for vertical writing)'),
370		('Offset', 'XPlaDevice', None, None, 'Offset to Device table for horizontal placement-measured from beginning of PosTable (may be NULL)'),
371		('Offset', 'YPlaDevice', None, None, 'Offset to Device table for vertical placement-measured from beginning of PosTable (may be NULL)'),
372		('Offset', 'XAdvDevice', None, None, 'Offset to Device table for horizontal advance-measured from beginning of PosTable (may be NULL)'),
373		('Offset', 'YAdvDevice', None, None, 'Offset to Device table for vertical advance-measured from beginning of PosTable (may be NULL)'),
374	]),
375
376	('AnchorFormat1', [
377		('uint16', 'AnchorFormat', None, None, 'Format identifier-format = 1'),
378		('int16', 'XCoordinate', None, None, 'Horizontal value-in design units'),
379		('int16', 'YCoordinate', None, None, 'Vertical value-in design units'),
380	]),
381
382	('AnchorFormat2', [
383		('uint16', 'AnchorFormat', None, None, 'Format identifier-format = 2'),
384		('int16', 'XCoordinate', None, None, 'Horizontal value-in design units'),
385		('int16', 'YCoordinate', None, None, 'Vertical value-in design units'),
386		('uint16', 'AnchorPoint', None, None, 'Index to glyph contour point'),
387	]),
388
389	('AnchorFormat3', [
390		('uint16', 'AnchorFormat', None, None, 'Format identifier-format = 3'),
391		('int16', 'XCoordinate', None, None, 'Horizontal value-in design units'),
392		('int16', 'YCoordinate', None, None, 'Vertical value-in design units'),
393		('Offset', 'XDeviceTable', None, None, 'Offset to Device table for X coordinate- from beginning of Anchor table (may be NULL)'),
394		('Offset', 'YDeviceTable', None, None, 'Offset to Device table for Y coordinate- from beginning of Anchor table (may be NULL)'),
395	]),
396
397	('MarkArray', [
398		('uint16', 'MarkCount', None, None, 'Number of MarkRecords'),
399		('struct', 'MarkRecord', 'MarkCount', 0, 'Array of MarkRecords-in Coverage order'),
400	]),
401
402	('MarkRecord', [
403		('uint16', 'Class', None, None, 'Class defined for this mark'),
404		('Offset', 'MarkAnchor', None, None, 'Offset to Anchor table-from beginning of MarkArray table'),
405	]),
406
407
408	#
409	# gsub (generated from gsub.htm)
410	#
411
412	('GSUB', [
413		('Fixed', 'Version', None, None, 'Version of the GSUB table-initially set to 0x00010000'),
414		('Offset', 'ScriptList', None, None, 'Offset to ScriptList table-from beginning of GSUB table'),
415		('Offset', 'FeatureList', None, None, 'Offset to FeatureList table-from beginning of GSUB table'),
416		('Offset', 'LookupList', None, None, 'Offset to LookupList table-from beginning of GSUB table'),
417	]),
418
419	('SingleSubstFormat1', [
420		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'),
421		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
422		('int16', 'DeltaGlyphID', None, None, 'Add to original GlyphID to get substitute GlyphID'),
423	]),
424
425	('SingleSubstFormat2', [
426		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 2'),
427		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
428		('uint16', 'GlyphCount', None, None, 'Number of GlyphIDs in the Substitute array'),
429		('GlyphID', 'Substitute', 'GlyphCount', 0, 'Array of substitute GlyphIDs-ordered by Coverage Index'),
430	]),
431
432	('MultipleSubstFormat1', [
433		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'),
434		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
435		('uint16', 'SequenceCount', None, None, 'Number of Sequence table offsets in the Sequence array'),
436		('Offset', 'Sequence', 'SequenceCount', 0, 'Array of offsets to Sequence tables-from beginning of Substitution table-ordered by Coverage Index'),
437	]),
438
439	('Sequence', [
440		('uint16', 'GlyphCount', None, None, 'Number of GlyphIDs in the Substitute array. This should always be greater than 0.'),
441		('GlyphID', 'Substitute', 'GlyphCount', 0, 'String of GlyphIDs to substitute'),
442	]),
443
444	('AlternateSubstFormat1', [
445		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'),
446		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
447		('uint16', 'AlternateSetCount', None, None, 'Number of AlternateSet tables'),
448		('Offset', 'AlternateSet', 'AlternateSetCount', 0, 'Array of offsets to AlternateSet tables-from beginning of Substitution table-ordered by Coverage Index'),
449	]),
450
451	('AlternateSet', [
452		('uint16', 'GlyphCount', None, None, 'Number of GlyphIDs in the Alternate array'),
453		('GlyphID', 'Alternate', 'GlyphCount', 0, 'Array of alternate GlyphIDs-in arbitrary order'),
454	]),
455
456	('LigatureSubstFormat1', [
457		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'),
458		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
459		('uint16', 'LigSetCount', None, None, 'Number of LigatureSet tables'),
460		('Offset', 'LigatureSet', 'LigSetCount', 0, 'Array of offsets to LigatureSet tables-from beginning of Substitution table-ordered by Coverage Index'),
461	]),
462
463	('LigatureSet', [
464		('uint16', 'LigatureCount', None, None, 'Number of Ligature tables'),
465		('Offset', 'Ligature', 'LigatureCount', 0, 'Array of offsets to Ligature tables-from beginning of LigatureSet table-ordered by preference'),
466	]),
467
468	('Ligature', [
469		('GlyphID', 'LigGlyph', None, None, 'GlyphID of ligature to substitute'),
470		('uint16', 'CompCount', None, None, 'Number of components in the ligature'),
471		('GlyphID', 'Component', 'CompCount', -1, 'Array of component GlyphIDs-start with the second component-ordered in writing direction'),
472	]),
473
474	('SubstLookupRecord', [
475		('uint16', 'SequenceIndex', None, None, 'Index into current glyph sequence-first glyph = 0'),
476		('uint16', 'LookupListIndex', None, None, 'Lookup to apply to that position-zero-based'),
477	]),
478
479	('ContextSubstFormat1', [
480		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'),
481		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
482		('uint16', 'SubRuleSetCount', None, None, 'Number of SubRuleSet tables-must equal GlyphCount in Coverage table'),
483		('Offset', 'SubRuleSet', 'SubRuleSetCount', 0, 'Array of offsets to SubRuleSet tables-from beginning of Substitution table-ordered by Coverage Index'),
484	]),
485
486	('SubRuleSet', [
487		('uint16', 'SubRuleCount', None, None, 'Number of SubRule tables'),
488		('Offset', 'SubRule', 'SubRuleCount', 0, 'Array of offsets to SubRule tables-from beginning of SubRuleSet table-ordered by preference'),
489	]),
490
491	('SubRule', [
492		('uint16', 'GlyphCount', None, None, 'Total number of glyphs in input glyph sequence-includes the first glyph'),
493		('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'),
494		('GlyphID', 'Input', 'GlyphCount', -1, 'Array of input GlyphIDs-start with second glyph'),
495		('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords-in design order'),
496	]),
497
498	('ContextSubstFormat2', [
499		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 2'),
500		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
501		('Offset', 'ClassDef', None, None, 'Offset to glyph ClassDef table-from beginning of Substitution table'),
502		('uint16', 'SubClassSetCount', None, None, 'Number of SubClassSet tables'),
503		('Offset', 'SubClassSet', 'SubClassSetCount', 0, 'Array of offsets to SubClassSet tables-from beginning of Substitution table-ordered by class-may be NULL'),
504	]),
505
506	('SubClassSet', [
507		('uint16', 'SubClassRuleCount', None, None, 'Number of SubClassRule tables'),
508		('Offset', 'SubClassRule', 'SubClassRuleCount', 0, 'Array of offsets to SubClassRule tables-from beginning of SubClassSet-ordered by preference'),
509	]),
510
511	('SubClassRule', [
512		('uint16', 'GlyphCount', None, None, 'Total number of classes specified for the context in the rule-includes the first class'),
513		('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'),
514		('uint16', 'Class', 'GlyphCount', -1, 'Array of classes-beginning with the second class-to be matched to the input glyph class sequence'),
515		('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of Substitution lookups-in design order'),
516	]),
517
518	('ContextSubstFormat3', [
519		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 3'),
520		('uint16', 'GlyphCount', None, None, 'Number of glyphs in the input glyph sequence'),
521		('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'),
522		('Offset', 'Coverage', 'GlyphCount', 0, 'Array of offsets to Coverage table-from beginning of Substitution table-in glyph sequence order'),
523		('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords-in design order'),
524	]),
525
526	('ChainContextSubstFormat1', [
527		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'),
528		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
529		('uint16', 'ChainSubRuleSetCount', None, None, 'Number of ChainSubRuleSet tables-must equal GlyphCount in Coverage table'),
530		('Offset', 'ChainSubRuleSet', 'ChainSubRuleSetCount', 0, 'Array of offsets to ChainSubRuleSet tables-from beginning of Substitution table-ordered by Coverage Index'),
531	]),
532
533	('ChainSubRuleSet', [
534		('uint16', 'ChainSubRuleCount', None, None, 'Number of ChainSubRule tables'),
535		('Offset', 'ChainSubRule', 'ChainSubRuleCount', 0, 'Array of offsets to ChainSubRule tables-from beginning of ChainSubRuleSet table-ordered by preference'),
536	]),
537
538	('ChainSubRule', [
539		('uint16', 'BacktrackGlyphCount', None, None, 'Total number of glyphs in the backtrack sequence (number of glyphs to be matched before the first glyph)'),
540		('GlyphID', 'Backtrack', 'BacktrackGlyphCount', 0, "Array of backtracking GlyphID's (to be matched before the input sequence)"),
541		('uint16', 'InputGlyphCount', None, None, 'Total number of glyphs in the input sequence (includes the first glyph)'),
542		('GlyphID', 'Input', 'InputGlyphCount', -1, 'Array of input GlyphIDs (start with second glyph)'),
543		('uint16', 'LookAheadGlyphCount', None, None, 'Total number of glyphs in the look ahead sequence (number of glyphs to be matched after the input sequence)'),
544		('GlyphID', 'LookAhead', 'LookAheadGlyphCount', 0, "Array of lookahead GlyphID's (to be matched after the input sequence)"),
545		('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'),
546		('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords (in design order)'),
547	]),
548
549	('ChainContextSubstFormat2', [
550		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 2'),
551		('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'),
552		('Offset', 'BacktrackClassDef', None, None, 'Offset to glyph ClassDef table containing backtrack sequence data-from beginning of Substitution table'),
553		('Offset', 'InputClassDef', None, None, 'Offset to glyph ClassDef table containing input sequence data-from beginning of Substitution table'),
554		('Offset', 'LookAheadClassDef', None, None, 'Offset to glyph ClassDef table containing lookahead sequence data-from beginning of Substitution table'),
555		('uint16', 'ChainSubClassSetCount', None, None, 'Number of ChainSubClassSet tables'),
556		('Offset', 'ChainSubClassSet', 'ChainSubClassSetCount', 0, 'Array of offsets to ChainSubClassSet tables-from beginning of Substitution table-ordered by input class-may be NULL'),
557	]),
558
559	('ChainSubClassSet', [
560		('uint16', 'ChainSubClassRuleCount', None, None, 'Number of ChainSubClassRule tables'),
561		('Offset', 'ChainSubClassRule', 'ChainSubClassRuleCount', 0, 'Array of offsets to ChainSubClassRule tables-from beginning of ChainSubClassSet-ordered by preference'),
562	]),
563
564	('ChainSubClassRule', [
565		('uint16', 'BacktrackGlyphCount', None, None, 'Total number of glyphs in the backtrack sequence (number of glyphs to be matched before the first glyph)'),
566		('uint16', 'Backtrack', 'BacktrackGlyphCount', 0, 'Array of backtracking classes(to be matched before the input sequence)'),
567		('uint16', 'InputGlyphCount', None, None, 'Total number of classes in the input sequence (includes the first class)'),
568		('uint16', 'Input', 'InputGlyphCount', -1, 'Array of input classes(start with second class; to be matched with the input glyph sequence)'),
569		('uint16', 'LookAheadGlyphCount', None, None, 'Total number of classes in the look ahead sequence (number of classes to be matched after the input sequence)'),
570		('uint16', 'LookAhead', 'LookAheadGlyphCount', 0, 'Array of lookahead classes(to be matched after the input sequence)'),
571		('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'),
572		('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords (in design order)'),
573	]),
574
575	('ChainContextSubstFormat3', [
576		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 3'),
577		('uint16', 'BacktrackGlyphCount', None, None, 'Number of glyphs in the backtracking sequence'),
578		('Offset', 'BacktrackCoverage', 'BacktrackGlyphCount', 0, 'Array of offsets to coverage tables in backtracking sequence, in glyph sequence order'),
579		('uint16', 'InputGlyphCount', None, None, 'Number of glyphs in input sequence'),
580		('Offset', 'InputCoverage', 'InputGlyphCount', 0, 'Array of offsets to coverage tables in input sequence, in glyph sequence order'),
581		('uint16', 'LookAheadGlyphCount', None, None, 'Number of glyphs in lookahead sequence'),
582		('Offset', 'LookAheadCoverage', 'LookAheadGlyphCount', 0, 'Array of offsets to coverage tables in lookahead sequence, in glyph sequence order'),
583		('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'),
584		('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords, in design order'),
585	]),
586
587	('ExtensionSubstFormat1', [
588		('USHORT', 'ExtFormat', None, None, 'Format identifier. Set to 1.'),
589		('USHORT', 'ExtensionLookupType', None, None, 'Lookup type of subtable referenced by ExtensionOffset (i.e. the extension subtable).'),
590		('LOffset', 'ExtSubTable', None, None, 'Array of offsets to Lookup tables-from beginning of LookupList -zero based (first lookup is Lookup index = 0)'),
591	]),
592
593	('ReverseChainSingleSubstFormat1', [
594		('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'),
595		('Offset', 'Coverage', None, 0, 'Offset to Coverage table - from beginning of Substitution table'),
596		('uint16', 'BacktrackGlyphCount', None, None, 'Number of glyphs in the backtracking sequence'),
597		('Offset', 'BacktrackCoverage', 'BacktrackGlyphCount', 0, 'Array of offsets to coverage tables in backtracking sequence, in glyph sequence order'),
598		('uint16', 'LookAheadGlyphCount', None, None, 'Number of glyphs in lookahead sequence'),
599		('Offset', 'LookAheadCoverage', 'LookAheadGlyphCount', 0, 'Array of offsets to coverage tables in lookahead sequence, in glyph sequence order'),
600		('uint16', 'GlyphCount', None, None, 'Number of GlyphIDs in the Substitute array'),
601		('GlyphID', 'Substitute', 'GlyphCount', 0, 'Array of substitute GlyphIDs-ordered by Coverage index'),
602	]),
603
604	#
605	# gdef (generated from gdef.htm)
606	#
607
608	('GDEF', [
609		('Fixed', 'Version', None, None, 'Version of the GDEF table-initially 0x00010000'),
610		('Offset', 'GlyphClassDef', None, None, 'Offset to class definition table for glyph type-from beginning of GDEF header (may be NULL)'),
611		('Offset', 'AttachList', None, None, 'Offset to list of glyphs with attachment points-from beginning of GDEF header (may be NULL)'),
612		('Offset', 'LigCaretList', None, None, 'Offset to list of positioning points for ligature carets-from beginning of GDEF header (may be NULL)'),
613		('Offset', 'MarkAttachClassDef', None, None, 'Offset to class definition table for mark attachment type-from beginning of GDEF header (may be NULL)'),
614	]),
615
616	('AttachList', [
617		('Offset', 'Coverage', None, None, 'Offset to Coverage table - from beginning of AttachList table'),
618		('uint16', 'GlyphCount', None, None, 'Number of glyphs with attachment points'),
619		('Offset', 'AttachPoint', 'GlyphCount', 0, 'Array of offsets to AttachPoint tables-from beginning of AttachList table-in Coverage Index order'),
620	]),
621
622	('AttachPoint', [
623		('uint16', 'PointCount', None, None, 'Number of attachment points on this glyph'),
624		('uint16', 'PointIndex', 'PointCount', 0, 'Array of contour point indices -in increasing numerical order'),
625	]),
626
627	('LigCaretList', [
628		('Offset', 'Coverage', None, None, 'Offset to Coverage table - from beginning of LigCaretList table'),
629		('uint16', 'LigGlyphCount', None, None, 'Number of ligature glyphs'),
630		('Offset', 'LigGlyph', 'LigGlyphCount', 0, 'Array of offsets to LigGlyph tables-from beginning of LigCaretList table-in Coverage Index order'),
631	]),
632
633	('LigGlyph', [
634		('uint16', 'CaretCount', None, None, 'Number of CaretValues for this ligature (components - 1)'),
635		('Offset', 'CaretValue', 'CaretCount', 0, 'Array of offsets to CaretValue tables-from beginning of LigGlyph table-in increasing coordinate order'),
636	]),
637
638	('CaretValueFormat1', [
639		('uint16', 'CaretValueFormat', None, None, 'Format identifier-format = 1'),
640		('int16', 'Coordinate', None, None, 'X or Y value, in design units'),
641	]),
642
643	('CaretValueFormat2', [
644		('uint16', 'CaretValueFormat', None, None, 'Format identifier-format = 2'),
645		('uint16', 'CaretValuePoint', None, None, 'Contour point index on glyph'),
646	]),
647
648	('CaretValueFormat3', [
649		('uint16', 'CaretValueFormat', None, None, 'Format identifier-format = 3'),
650		('int16', 'Coordinate', None, None, 'X or Y value, in design units'),
651		('Offset', 'DeviceTable', None, None, 'Offset to Device table for X or Y value-from beginning of CaretValue table'),
652	]),
653
654
655	#
656	# base (generated from base.htm)
657	#
658
659	('BASE', [
660		('fixed32', 'Version', None, None, 'Version of the BASE table-initially 0x00010000'),
661		('Offset', 'HorizAxis', None, None, 'Offset to horizontal Axis table-from beginning of BASE table-may be NULL'),
662		('Offset', 'VertAxis', None, None, 'Offset to vertical Axis table-from beginning of BASE table-may be NULL'),
663	]),
664
665	('Axis', [
666		('Offset', 'BaseTagList', None, None, 'Offset to BaseTagList table-from beginning of Axis table-may be NULL'),
667		('Offset', 'BaseScriptList', None, None, 'Offset to BaseScriptList table-from beginning of Axis table'),
668	]),
669
670	('BaseTagList', [
671		('uint16', 'BaseTagCount', None, None, 'Number of baseline identification tags in this text direction-may be zero (0)'),
672		('Tag', 'BaselineTag', 'BaseTagCount', 0, 'Array of 4-byte baseline identification tags-must be in alphabetical order'),
673	]),
674
675	('BaseScriptList', [
676		('uint16', 'BaseScriptCount', None, None, 'Number of BaseScriptRecords defined'),
677		('struct', 'BaseScriptRecord', 'BaseScriptCount', 0, 'Array of BaseScriptRecords-in alphabetical order by BaseScriptTag'),
678	]),
679
680	('BaseScriptRecord', [
681		('Tag', 'BaseScriptTag', None, None, '4-byte script identification tag'),
682		('Offset', 'BaseScript', None, None, 'Offset to BaseScript table-from beginning of BaseScriptList'),
683	]),
684
685	('BaseScript', [
686		('Offset', 'BaseValues', None, None, 'Offset to BaseValues table-from beginning of BaseScript table-may be NULL'),
687		('Offset', 'DefaultMinMax', None, None, 'Offset to MinMax table- from beginning of BaseScript table-may be NULL'),
688		('uint16', 'BaseLangSysCount', None, None, 'Number of BaseLangSysRecords defined-may be zero (0)'),
689		('struct', 'BaseLangSysRecord', 'BaseLangSysCount', 0, 'Array of BaseLangSysRecords-in alphabetical order by BaseLangSysTag'),
690	]),
691
692	('BaseLangSysRecord', [
693		('Tag', 'BaseLangSysTag', None, None, '4-byte language system identification tag'),
694		('Offset', 'MinMax', None, None, 'Offset to MinMax table-from beginning of BaseScript table'),
695	]),
696
697	('BaseValues', [
698		('uint16', 'DefaultIndex', None, None, 'Index number of default baseline for this script-equals index position of baseline tag in BaselineArray of the BaseTagList'),
699		('uint16', 'BaseCoordCount', None, None, 'Number of BaseCoord tables defined-should equal BaseTagCount in the BaseTagList'),
700		('Offset', 'BaseCoord', 'BaseCoordCount', 0, 'Array of offsets to BaseCoord-from beginning of BaseValues table-order matches BaselineTag array in the BaseTagList'),
701	]),
702
703	('MinMax', [
704		('Offset', 'MinCoord', None, None, 'Offset to BaseCoord table-defines minimum extent value-from the beginning of MinMax table-may be NULL'),
705		('Offset', 'MaxCoord', None, None, 'Offset to BaseCoord table-defines maximum extent value-from the beginning of MinMax table-may be NULL'),
706		('uint16', 'FeatMinMaxCount', None, None, 'Number of FeatMinMaxRecords-may be zero (0)'),
707		('struct', 'FeatMinMaxRecord', 'FeatMinMaxCount', 0, 'Array of FeatMinMaxRecords-in alphabetical order, by FeatureTableTag'),
708	]),
709
710	('FeatMinMaxRecord', [
711		('Tag', 'FeatureTableTag', None, None, '4-byte feature identification tag-must match FeatureTag in FeatureList'),
712		('Offset', 'MinCoord', None, None, 'Offset to BaseCoord table-defines minimum extent value-from beginning of MinMax table-may be NULL'),
713		('Offset', 'MaxCoord', None, None, 'Offset to BaseCoord table-defines maximum extent value-from beginning of MinMax table-may be NULL'),
714	]),
715
716	('BaseCoordFormat1', [
717		('uint16', 'BaseCoordFormat', None, None, 'Format identifier-format = 1'),
718		('int16', 'Coordinate', None, None, 'X or Y value, in design units'),
719	]),
720
721	('BaseCoordFormat2', [
722		('uint16', 'BaseCoordFormat', None, None, 'Format identifier-format = 2'),
723		('int16', 'Coordinate', None, None, 'X or Y value, in design units'),
724		('GlyphID', 'ReferenceGlyph', None, None, 'GlyphID of control glyph'),
725		('uint16', 'BaseCoordPoint', None, None, 'Index of contour point on the ReferenceGlyph'),
726	]),
727
728	('BaseCoordFormat3', [
729		('uint16', 'BaseCoordFormat', None, None, 'Format identifier-format = 3'),
730		('int16', 'Coordinate', None, None, 'X or Y value, in design units'),
731		('Offset', 'DeviceTable', None, None, 'Offset to Device table for X or Y value'),
732	]),
733
734
735	#
736	# jstf (generated from jstf.htm)
737	#
738
739	('JSTF', [
740		('fixed32', 'Version', None, None, 'Version of the JSTF table-initially set to 0x00010000'),
741		('uint16', 'JstfScriptCount', None, None, 'Number of JstfScriptRecords in this table'),
742		('struct', 'JstfScriptRecord', 'JstfScriptCount', 0, 'Array of JstfScriptRecords-in alphabetical order, by JstfScriptTag'),
743	]),
744
745	('JstfScriptRecord', [
746		('Tag', 'JstfScriptTag', None, None, '4-byte JstfScript identification'),
747		('Offset', 'JstfScript', None, None, 'Offset to JstfScript table-from beginning of JSTF Header'),
748	]),
749
750	('JstfScript', [
751		('Offset', 'ExtenderGlyph', None, None, 'Offset to ExtenderGlyph table-from beginning of JstfScript table-may be NULL'),
752		('Offset', 'DefJstfLangSys', None, None, 'Offset to Default JstfLangSys table-from beginning of JstfScript table-may be NULL'),
753		('uint16', 'JstfLangSysCount', None, None, 'Number of JstfLangSysRecords in this table- may be zero (0)'),
754		('struct', 'JstfLangSysRecord', 'JstfLangSysCount', 0, 'Array of JstfLangSysRecords-in alphabetical order, by JstfLangSysTag'),
755	]),
756
757	('JstfLangSysRecord', [
758		('Tag', 'JstfLangSysTag', None, None, '4-byte JstfLangSys identifier'),
759		('Offset', 'JstfLangSys', None, None, 'Offset to JstfLangSys table-from beginning of JstfScript table'),
760	]),
761
762	('ExtenderGlyph', [
763		('uint16', 'GlyphCount', None, None, 'Number of Extender Glyphs in this script'),
764		('GlyphID', 'ExtenderGlyph', 'GlyphCount', 0, 'GlyphIDs-in increasing numerical order'),
765	]),
766
767	('JstfLangSys', [
768		('uint16', 'JstfPriorityCount', None, None, 'Number of JstfPriority tables'),
769		('Offset', 'JstfPriority', 'JstfPriorityCount', 0, 'Array of offsets to JstfPriority tables-from beginning of JstfLangSys table-in priority order'),
770	]),
771
772	('JstfPriority', [
773		('Offset', 'ShrinkageEnableGSUB', None, None, 'Offset to Shrinkage Enable JstfGSUBModList table-from beginning of JstfPriority table-may be NULL'),
774		('Offset', 'ShrinkageDisableGSUB', None, None, 'Offset to Shrinkage Disable JstfGSUBModList table-from beginning of JstfPriority table-may be NULL'),
775		('Offset', 'ShrinkageEnableGPOS', None, None, 'Offset to Shrinkage Enable JstfGPOSModList table-from beginning of JstfPriority table-may be NULL'),
776		('Offset', 'ShrinkageDisableGPOS', None, None, 'Offset to Shrinkage Disable JstfGPOSModList table-from beginning of JstfPriority table-may be NULL'),
777		('Offset', 'ShrinkageJstfMax', None, None, 'Offset to Shrinkage JstfMax table-from beginning of JstfPriority table -may be NULL'),
778		('Offset', 'ExtensionEnableGSUB', None, None, 'Offset to Extension Enable JstfGSUBModList table-may be NULL'),
779		('Offset', 'ExtensionDisableGSUB', None, None, 'Offset to Extension Disable JstfGSUBModList table-from beginning of JstfPriority table-may be NULL'),
780		('Offset', 'ExtensionEnableGPOS', None, None, 'Offset to Extension Enable JstfGSUBModList table-may be NULL'),
781		('Offset', 'ExtensionDisableGPOS', None, None, 'Offset to Extension Disable JstfGSUBModList table-from beginning of JstfPriority table-may be NULL'),
782		('Offset', 'ExtensionJstfMax', None, None, 'Offset to Extension JstfMax table-from beginning of JstfPriority table -may be NULL'),
783	]),
784
785	('JstfGSUBModList', [
786		('uint16', 'LookupCount', None, None, 'Number of lookups for this modification'),
787		('uint16', 'GSUBLookupIndex', 'LookupCount', 0, 'Array of LookupIndex identifiers in GSUB-in increasing numerical order'),
788	]),
789
790	('JstfGPOSModList', [
791		('uint16', 'LookupCount', None, None, 'Number of lookups for this modification'),
792		('uint16', 'GPOSLookupIndex', 'LookupCount', 0, 'Array of LookupIndex identifiers in GPOS-in increasing numerical order'),
793	]),
794
795	('JstfMax', [
796		('uint16', 'LookupCount', None, None, 'Number of lookup Indices for this modification'),
797		('Offset', 'Lookup', 'LookupCount', 0, 'Array of offsets to GPOS-type lookup tables-from beginning of JstfMax table-in design order'),
798	]),
799
800]
801
802