otData.py revision f952a22af7b59862d49ee2947932f4baab37a5ed
1otData = [ 2 3 # 4 # common 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 ('FeatureParams', [ 52 ]), 53 54 ('FeatureParamsSize', [ 55 ('DeciPoints', 'DesignSize', None, None, 'The design size in 720/inch units (decipoints).'), 56 ('uint16', 'SubfamilyID', None, None, 'Serves as an identifier that associates fonts in a subfamily.'), 57 ('uint16', 'SubfamilyNameID', None, None, 'Subfamily NameID.'), 58 ('DeciPoints', 'RangeStart', None, None, 'Small end of recommended usage range (exclusive) in 720/inch units.'), 59 ('DeciPoints', 'RangeEnd', None, None, 'Large end of recommended usage range (inclusive) in 720/inch units.'), 60 ]), 61 62 ('FeatureParamsStylisticSet', [ 63 ('uint16', 'Version', None, None, 'Set to 0.'), 64 ('uint16', 'UINameID', None, None, 'UI NameID.'), 65 ]), 66 67 ('FeatureParamsCharacterVariants', [ 68 ('uint16', 'Format', None, None, 'Set to 0.'), 69 ('uint16', 'FeatUILabelNameID', None, None, 'Feature UI label NameID.'), 70 ('uint16', 'FeatUITooltipTextNameID', None, None, 'Feature UI tooltip text NameID.'), 71 ('uint16', 'SampleTextNameID', None, None, 'Sample text NameID.'), 72 ('uint16', 'NumNamedParameters', None, None, 'Number of named parameters.'), 73 ('uint16', 'FirstParamUILabelNameID', None, None, 'First NameID of UI feature parameters.'), 74 ('uint16', 'CharCount', None, None, 'Count of characters this feature provides glyph variants for.'), 75 ('uint24', 'Character', 'CharCount', 0, 'Unicode characters for which this feature provides glyph variants.'), 76 ]), 77 78 ('LookupList', [ 79 ('uint16', 'LookupCount', None, None, 'Number of lookups in this table'), 80 ('Offset', 'Lookup', 'LookupCount', 0, 'Array of offsets to Lookup tables-from beginning of LookupList -zero based (first lookup is Lookup index = 0)'), 81 ]), 82 83 ('Lookup', [ 84 ('uint16', 'LookupType', None, None, 'Different enumerations for GSUB and GPOS'), 85 ('uint16', 'LookupFlag', None, None, 'Lookup qualifiers'), 86 ('uint16', 'SubTableCount', None, None, 'Number of SubTables for this lookup'), 87 ('Offset', 'SubTable', 'SubTableCount', 0, 'Array of offsets to SubTables-from beginning of Lookup table'), 88 ('uint16', 'MarkFilteringSet', None, 'LookupFlag & 0x0010', 'If set, indicates that the lookup table structure is followed by a MarkFilteringSet field. The layout engine skips over all mark glyphs not in the mark filtering set indicated.'), 89 ]), 90 91 ('CoverageFormat1', [ 92 ('uint16', 'CoverageFormat', None, None, 'Format identifier-format = 1'), 93 ('uint16', 'GlyphCount', None, None, 'Number of glyphs in the GlyphArray'), 94 ('GlyphID', 'GlyphArray', 'GlyphCount', 0, 'Array of GlyphIDs-in numerical order'), 95 ]), 96 97 ('CoverageFormat2', [ 98 ('uint16', 'CoverageFormat', None, None, 'Format identifier-format = 2'), 99 ('uint16', 'RangeCount', None, None, 'Number of RangeRecords'), 100 ('struct', 'RangeRecord', 'RangeCount', 0, 'Array of glyph ranges-ordered by Start GlyphID'), 101 ]), 102 103 ('RangeRecord', [ 104 ('GlyphID', 'Start', None, None, 'First GlyphID in the range'), 105 ('GlyphID', 'End', None, None, 'Last GlyphID in the range'), 106 ('uint16', 'StartCoverageIndex', None, None, 'Coverage Index of first GlyphID in range'), 107 ]), 108 109 ('ClassDefFormat1', [ 110 ('uint16', 'ClassFormat', None, None, 'Format identifier-format = 1'), 111 ('GlyphID', 'StartGlyph', None, None, 'First GlyphID of the ClassValueArray'), 112 ('uint16', 'GlyphCount', None, None, 'Size of the ClassValueArray'), 113 ('uint16', 'ClassValueArray', 'GlyphCount', 0, 'Array of Class Values-one per GlyphID'), 114 ]), 115 116 ('ClassDefFormat2', [ 117 ('uint16', 'ClassFormat', None, None, 'Format identifier-format = 2'), 118 ('uint16', 'ClassRangeCount', None, None, 'Number of ClassRangeRecords'), 119 ('struct', 'ClassRangeRecord', 'ClassRangeCount', 0, 'Array of ClassRangeRecords-ordered by Start GlyphID'), 120 ]), 121 122 ('ClassRangeRecord', [ 123 ('GlyphID', 'Start', None, None, 'First GlyphID in the range'), 124 ('GlyphID', 'End', None, None, 'Last GlyphID in the range'), 125 ('uint16', 'Class', None, None, 'Applied to all glyphs in the range'), 126 ]), 127 128 ('Device', [ 129 ('uint16', 'StartSize', None, None, 'Smallest size to correct-in ppem'), 130 ('uint16', 'EndSize', None, None, 'Largest size to correct-in ppem'), 131 ('uint16', 'DeltaFormat', None, None, 'Format of DeltaValue array data: 1, 2, or 3'), 132 ('DeltaValue', 'DeltaValue', '', 0, 'Array of compressed data'), 133 ]), 134 135 136 # 137 # gpos 138 # 139 140 ('GPOS', [ 141 ('Version', 'Version', None, None, 'Version of the GPOS table-initially = 0x00010000'), 142 ('Offset', 'ScriptList', None, None, 'Offset to ScriptList table-from beginning of GPOS table'), 143 ('Offset', 'FeatureList', None, None, 'Offset to FeatureList table-from beginning of GPOS table'), 144 ('Offset', 'LookupList', None, None, 'Offset to LookupList table-from beginning of GPOS table'), 145 ]), 146 147 ('SinglePosFormat1', [ 148 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'), 149 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of SinglePos subtable'), 150 ('uint16', 'ValueFormat', None, None, 'Defines the types of data in the ValueRecord'), 151 ('ValueRecord', 'Value', None, None, 'Defines positioning value(s)-applied to all glyphs in the Coverage table'), 152 ]), 153 154 ('SinglePosFormat2', [ 155 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 2'), 156 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of SinglePos subtable'), 157 ('uint16', 'ValueFormat', None, None, 'Defines the types of data in the ValueRecord'), 158 ('uint16', 'ValueCount', None, None, 'Number of ValueRecords'), 159 ('ValueRecord', 'Value', 'ValueCount', 0, 'Array of ValueRecords-positioning values applied to glyphs'), 160 ]), 161 162 ('PairPosFormat1', [ 163 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'), 164 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of PairPos subtable-only the first glyph in each pair'), 165 ('uint16', 'ValueFormat1', None, None, 'Defines the types of data in ValueRecord1-for the first glyph in the pair -may be zero (0)'), 166 ('uint16', 'ValueFormat2', None, None, 'Defines the types of data in ValueRecord2-for the second glyph in the pair -may be zero (0)'), 167 ('uint16', 'PairSetCount', None, None, 'Number of PairSet tables'), 168 ('Offset', 'PairSet', 'PairSetCount', 0, 'Array of offsets to PairSet tables-from beginning of PairPos subtable-ordered by Coverage Index'), 169 ]), 170 171 ('PairSet', [ 172 ('uint16', 'PairValueCount', None, None, 'Number of PairValueRecords'), 173 ('struct', 'PairValueRecord', 'PairValueCount', 0, 'Array of PairValueRecords-ordered by GlyphID of the second glyph'), 174 ]), 175 176 ('PairValueRecord', [ 177 ('GlyphID', 'SecondGlyph', None, None, 'GlyphID of second glyph in the pair-first glyph is listed in the Coverage table'), 178 ('ValueRecord', 'Value1', None, None, 'Positioning data for the first glyph in the pair'), 179 ('ValueRecord', 'Value2', None, None, 'Positioning data for the second glyph in the pair'), 180 ]), 181 182 ('PairPosFormat2', [ 183 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 2'), 184 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of PairPos subtable-for the first glyph of the pair'), 185 ('uint16', 'ValueFormat1', None, None, 'ValueRecord definition-for the first glyph of the pair-may be zero (0)'), 186 ('uint16', 'ValueFormat2', None, None, 'ValueRecord definition-for the second glyph of the pair-may be zero (0)'), 187 ('Offset', 'ClassDef1', None, None, 'Offset to ClassDef table-from beginning of PairPos subtable-for the first glyph of the pair'), 188 ('Offset', 'ClassDef2', None, None, 'Offset to ClassDef table-from beginning of PairPos subtable-for the second glyph of the pair'), 189 ('uint16', 'Class1Count', None, None, 'Number of classes in ClassDef1 table-includes Class0'), 190 ('uint16', 'Class2Count', None, None, 'Number of classes in ClassDef2 table-includes Class0'), 191 ('struct', 'Class1Record', 'Class1Count', 0, 'Array of Class1 records-ordered by Class1'), 192 ]), 193 194 ('Class1Record', [ 195 ('struct', 'Class2Record', 'Class2Count', 0, 'Array of Class2 records-ordered by Class2'), 196 ]), 197 198 ('Class2Record', [ 199 ('ValueRecord', 'Value1', None, None, 'Positioning for first glyph-empty if ValueFormat1 = 0'), 200 ('ValueRecord', 'Value2', None, None, 'Positioning for second glyph-empty if ValueFormat2 = 0'), 201 ]), 202 203 ('CursivePosFormat1', [ 204 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'), 205 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of CursivePos subtable'), 206 ('uint16', 'EntryExitCount', None, None, 'Number of EntryExit records'), 207 ('struct', 'EntryExitRecord', 'EntryExitCount', 0, 'Array of EntryExit records-in Coverage Index order'), 208 ]), 209 210 ('EntryExitRecord', [ 211 ('Offset', 'EntryAnchor', None, None, 'Offset to EntryAnchor table-from beginning of CursivePos subtable-may be NULL'), 212 ('Offset', 'ExitAnchor', None, None, 'Offset to ExitAnchor table-from beginning of CursivePos subtable-may be NULL'), 213 ]), 214 215 ('MarkBasePosFormat1', [ 216 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'), 217 ('Offset', 'MarkCoverage', None, None, 'Offset to MarkCoverage table-from beginning of MarkBasePos subtable'), 218 ('Offset', 'BaseCoverage', None, None, 'Offset to BaseCoverage table-from beginning of MarkBasePos subtable'), 219 ('uint16', 'ClassCount', None, None, 'Number of classes defined for marks'), 220 ('Offset', 'MarkArray', None, None, 'Offset to MarkArray table-from beginning of MarkBasePos subtable'), 221 ('Offset', 'BaseArray', None, None, 'Offset to BaseArray table-from beginning of MarkBasePos subtable'), 222 ]), 223 224 ('BaseArray', [ 225 ('uint16', 'BaseCount', None, None, 'Number of BaseRecords'), 226 ('struct', 'BaseRecord', 'BaseCount', 0, 'Array of BaseRecords-in order of BaseCoverage Index'), 227 ]), 228 229 ('BaseRecord', [ 230 ('Offset', 'BaseAnchor', 'ClassCount', 0, 'Array of offsets (one per class) to Anchor tables-from beginning of BaseArray table-ordered by class-zero-based'), 231 ]), 232 233 ('MarkLigPosFormat1', [ 234 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'), 235 ('Offset', 'MarkCoverage', None, None, 'Offset to Mark Coverage table-from beginning of MarkLigPos subtable'), 236 ('Offset', 'LigatureCoverage', None, None, 'Offset to Ligature Coverage table-from beginning of MarkLigPos subtable'), 237 ('uint16', 'ClassCount', None, None, 'Number of defined mark classes'), 238 ('Offset', 'MarkArray', None, None, 'Offset to MarkArray table-from beginning of MarkLigPos subtable'), 239 ('Offset', 'LigatureArray', None, None, 'Offset to LigatureArray table-from beginning of MarkLigPos subtable'), 240 ]), 241 242 ('LigatureArray', [ 243 ('uint16', 'LigatureCount', None, None, 'Number of LigatureAttach table offsets'), 244 ('Offset', 'LigatureAttach', 'LigatureCount', 0, 'Array of offsets to LigatureAttach tables-from beginning of LigatureArray table-ordered by LigatureCoverage Index'), 245 ]), 246 247 ('LigatureAttach', [ 248 ('uint16', 'ComponentCount', None, None, 'Number of ComponentRecords in this ligature'), 249 ('struct', 'ComponentRecord', 'ComponentCount', 0, 'Array of Component records-ordered in writing direction'), 250 ]), 251 252 ('ComponentRecord', [ 253 ('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'), 254 ]), 255 256 ('MarkMarkPosFormat1', [ 257 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'), 258 ('Offset', 'Mark1Coverage', None, None, 'Offset to Combining Mark Coverage table-from beginning of MarkMarkPos subtable'), 259 ('Offset', 'Mark2Coverage', None, None, 'Offset to Base Mark Coverage table-from beginning of MarkMarkPos subtable'), 260 ('uint16', 'ClassCount', None, None, 'Number of Combining Mark classes defined'), 261 ('Offset', 'Mark1Array', None, None, 'Offset to MarkArray table for Mark1-from beginning of MarkMarkPos subtable'), 262 ('Offset', 'Mark2Array', None, None, 'Offset to Mark2Array table for Mark2-from beginning of MarkMarkPos subtable'), 263 ]), 264 265 ('Mark2Array', [ 266 ('uint16', 'Mark2Count', None, None, 'Number of Mark2 records'), 267 ('struct', 'Mark2Record', 'Mark2Count', 0, 'Array of Mark2 records-in Coverage order'), 268 ]), 269 270 ('Mark2Record', [ 271 ('Offset', 'Mark2Anchor', 'ClassCount', 0, 'Array of offsets (one per class) to Anchor tables-from beginning of Mark2Array table-zero-based array'), 272 ]), 273 274 ('PosLookupRecord', [ 275 ('uint16', 'SequenceIndex', None, None, 'Index to input glyph sequence-first glyph = 0'), 276 ('uint16', 'LookupListIndex', None, None, 'Lookup to apply to that position-zero-based'), 277 ]), 278 279 ('ContextPosFormat1', [ 280 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'), 281 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of ContextPos subtable'), 282 ('uint16', 'PosRuleSetCount', None, None, 'Number of PosRuleSet tables'), 283 ('Offset', 'PosRuleSet', 'PosRuleSetCount', 0, 'Array of offsets to PosRuleSet tables-from beginning of ContextPos subtable-ordered by Coverage Index'), 284 ]), 285 286 ('PosRuleSet', [ 287 ('uint16', 'PosRuleCount', None, None, 'Number of PosRule tables'), 288 ('Offset', 'PosRule', 'PosRuleCount', 0, 'Array of offsets to PosRule tables-from beginning of PosRuleSet-ordered by preference'), 289 ]), 290 291 ('PosRule', [ 292 ('uint16', 'GlyphCount', None, None, 'Number of glyphs in the Input glyph sequence'), 293 ('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'), 294 ('GlyphID', 'Input', 'GlyphCount', -1, 'Array of input GlyphIDs-starting with the second glyph'), 295 ('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of positioning lookups-in design order'), 296 ]), 297 298 ('ContextPosFormat2', [ 299 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 2'), 300 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of ContextPos subtable'), 301 ('Offset', 'ClassDef', None, None, 'Offset to ClassDef table-from beginning of ContextPos subtable'), 302 ('uint16', 'PosClassSetCount', None, None, 'Number of PosClassSet tables'), 303 ('Offset', 'PosClassSet', 'PosClassSetCount', 0, 'Array of offsets to PosClassSet tables-from beginning of ContextPos subtable-ordered by class-may be NULL'), 304 ]), 305 306 ('PosClassSet', [ 307 ('uint16', 'PosClassRuleCount', None, None, 'Number of PosClassRule tables'), 308 ('Offset', 'PosClassRule', 'PosClassRuleCount', 0, 'Array of offsets to PosClassRule tables-from beginning of PosClassSet-ordered by preference'), 309 ]), 310 311 ('PosClassRule', [ 312 ('uint16', 'GlyphCount', None, None, 'Number of glyphs to be matched'), 313 ('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'), 314 ('uint16', 'Class', 'GlyphCount', -1, 'Array of classes-beginning with the second class-to be matched to the input glyph sequence'), 315 ('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of positioning lookups-in design order'), 316 ]), 317 318 ('ContextPosFormat3', [ 319 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 3'), 320 ('uint16', 'GlyphCount', None, None, 'Number of glyphs in the input sequence'), 321 ('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'), 322 ('Offset', 'Coverage', 'GlyphCount', 0, 'Array of offsets to Coverage tables-from beginning of ContextPos subtable'), 323 ('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of positioning lookups-in design order'), 324 ]), 325 326 ('ChainContextPosFormat1', [ 327 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 1'), 328 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of ContextPos subtable'), 329 ('uint16', 'ChainPosRuleSetCount', None, None, 'Number of ChainPosRuleSet tables'), 330 ('Offset', 'ChainPosRuleSet', 'ChainPosRuleSetCount', 0, 'Array of offsets to ChainPosRuleSet tables-from beginning of ContextPos subtable-ordered by Coverage Index'), 331 ]), 332 333 ('ChainPosRuleSet', [ 334 ('uint16', 'ChainPosRuleCount', None, None, 'Number of ChainPosRule tables'), 335 ('Offset', 'ChainPosRule', 'ChainPosRuleCount', 0, 'Array of offsets to ChainPosRule tables-from beginning of ChainPosRuleSet-ordered by preference'), 336 ]), 337 338 ('ChainPosRule', [ 339 ('uint16', 'BacktrackGlyphCount', None, None, 'Total number of glyphs in the backtrack sequence (number of glyphs to be matched before the first glyph)'), 340 ('GlyphID', 'Backtrack', 'BacktrackGlyphCount', 0, "Array of backtracking GlyphID's (to be matched before the input sequence)"), 341 ('uint16', 'InputGlyphCount', None, None, 'Total number of glyphs in the input sequence (includes the first glyph)'), 342 ('GlyphID', 'Input', 'InputGlyphCount', -1, 'Array of input GlyphIDs (start with second glyph)'), 343 ('uint16', 'LookAheadGlyphCount', None, None, 'Total number of glyphs in the look ahead sequence (number of glyphs to be matched after the input sequence)'), 344 ('GlyphID', 'LookAhead', 'LookAheadGlyphCount', 0, "Array of lookahead GlyphID's (to be matched after the input sequence)"), 345 ('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'), 346 ('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of PosLookupRecords (in design order)'), 347 ]), 348 349 ('ChainContextPosFormat2', [ 350 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 2'), 351 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of ChainContextPos subtable'), 352 ('Offset', 'BacktrackClassDef', None, None, 'Offset to ClassDef table containing backtrack sequence context-from beginning of ChainContextPos subtable'), 353 ('Offset', 'InputClassDef', None, None, 'Offset to ClassDef table containing input sequence context-from beginning of ChainContextPos subtable'), 354 ('Offset', 'LookAheadClassDef', None, None, 'Offset to ClassDef table containing lookahead sequence context-from beginning of ChainContextPos subtable'), 355 ('uint16', 'ChainPosClassSetCount', None, None, 'Number of ChainPosClassSet tables'), 356 ('Offset', 'ChainPosClassSet', 'ChainPosClassSetCount', 0, 'Array of offsets to ChainPosClassSet tables-from beginning of ChainContextPos subtable-ordered by input class-may be NULL'), 357 ]), 358 359 ('ChainPosClassSet', [ 360 ('uint16', 'ChainPosClassRuleCount', None, None, 'Number of ChainPosClassRule tables'), 361 ('Offset', 'ChainPosClassRule', 'ChainPosClassRuleCount', 0, 'Array of offsets to ChainPosClassRule tables-from beginning of ChainPosClassSet-ordered by preference'), 362 ]), 363 364 ('ChainPosClassRule', [ 365 ('uint16', 'BacktrackGlyphCount', None, None, 'Total number of glyphs in the backtrack sequence (number of glyphs to be matched before the first glyph)'), 366 ('uint16', 'Backtrack', 'BacktrackGlyphCount', 0, 'Array of backtracking classes(to be matched before the input sequence)'), 367 ('uint16', 'InputGlyphCount', None, None, 'Total number of classes in the input sequence (includes the first class)'), 368 ('uint16', 'Input', 'InputGlyphCount', -1, 'Array of input classes(start with second class; to be matched with the input glyph sequence)'), 369 ('uint16', 'LookAheadGlyphCount', None, None, 'Total number of classes in the look ahead sequence (number of classes to be matched after the input sequence)'), 370 ('uint16', 'LookAhead', 'LookAheadGlyphCount', 0, 'Array of lookahead classes(to be matched after the input sequence)'), 371 ('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'), 372 ('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of PosLookupRecords (in design order)'), 373 ]), 374 375 ('ChainContextPosFormat3', [ 376 ('uint16', 'PosFormat', None, None, 'Format identifier-format = 3'), 377 ('uint16', 'BacktrackGlyphCount', None, None, 'Number of glyphs in the backtracking sequence'), 378 ('Offset', 'BacktrackCoverage', 'BacktrackGlyphCount', 0, 'Array of offsets to coverage tables in backtracking sequence, in glyph sequence order'), 379 ('uint16', 'InputGlyphCount', None, None, 'Number of glyphs in input sequence'), 380 ('Offset', 'InputCoverage', 'InputGlyphCount', 0, 'Array of offsets to coverage tables in input sequence, in glyph sequence order'), 381 ('uint16', 'LookAheadGlyphCount', None, None, 'Number of glyphs in lookahead sequence'), 382 ('Offset', 'LookAheadCoverage', 'LookAheadGlyphCount', 0, 'Array of offsets to coverage tables in lookahead sequence, in glyph sequence order'), 383 ('uint16', 'PosCount', None, None, 'Number of PosLookupRecords'), 384 ('struct', 'PosLookupRecord', 'PosCount', 0, 'Array of PosLookupRecords,in design order'), 385 ]), 386 387 ('ExtensionPosFormat1', [ 388 ('uint16', 'ExtFormat', None, None, 'Format identifier. Set to 1.'), 389 ('uint16', 'ExtensionLookupType', None, None, 'Lookup type of subtable referenced by ExtensionOffset (i.e. the extension subtable).'), 390 ('LOffset', 'ExtSubTable', None, None, 'Array of offsets to Lookup tables-from beginning of LookupList -zero based (first lookup is Lookup index = 0)'), 391 ]), 392 393 ('ValueRecord', [ 394 ('int16', 'XPlacement', None, None, 'Horizontal adjustment for placement-in design units'), 395 ('int16', 'YPlacement', None, None, 'Vertical adjustment for placement-in design units'), 396 ('int16', 'XAdvance', None, None, 'Horizontal adjustment for advance-in design units (only used for horizontal writing)'), 397 ('int16', 'YAdvance', None, None, 'Vertical adjustment for advance-in design units (only used for vertical writing)'), 398 ('Offset', 'XPlaDevice', None, None, 'Offset to Device table for horizontal placement-measured from beginning of PosTable (may be NULL)'), 399 ('Offset', 'YPlaDevice', None, None, 'Offset to Device table for vertical placement-measured from beginning of PosTable (may be NULL)'), 400 ('Offset', 'XAdvDevice', None, None, 'Offset to Device table for horizontal advance-measured from beginning of PosTable (may be NULL)'), 401 ('Offset', 'YAdvDevice', None, None, 'Offset to Device table for vertical advance-measured from beginning of PosTable (may be NULL)'), 402 ]), 403 404 ('AnchorFormat1', [ 405 ('uint16', 'AnchorFormat', None, None, 'Format identifier-format = 1'), 406 ('int16', 'XCoordinate', None, None, 'Horizontal value-in design units'), 407 ('int16', 'YCoordinate', None, None, 'Vertical value-in design units'), 408 ]), 409 410 ('AnchorFormat2', [ 411 ('uint16', 'AnchorFormat', None, None, 'Format identifier-format = 2'), 412 ('int16', 'XCoordinate', None, None, 'Horizontal value-in design units'), 413 ('int16', 'YCoordinate', None, None, 'Vertical value-in design units'), 414 ('uint16', 'AnchorPoint', None, None, 'Index to glyph contour point'), 415 ]), 416 417 ('AnchorFormat3', [ 418 ('uint16', 'AnchorFormat', None, None, 'Format identifier-format = 3'), 419 ('int16', 'XCoordinate', None, None, 'Horizontal value-in design units'), 420 ('int16', 'YCoordinate', None, None, 'Vertical value-in design units'), 421 ('Offset', 'XDeviceTable', None, None, 'Offset to Device table for X coordinate- from beginning of Anchor table (may be NULL)'), 422 ('Offset', 'YDeviceTable', None, None, 'Offset to Device table for Y coordinate- from beginning of Anchor table (may be NULL)'), 423 ]), 424 425 ('MarkArray', [ 426 ('uint16', 'MarkCount', None, None, 'Number of MarkRecords'), 427 ('struct', 'MarkRecord', 'MarkCount', 0, 'Array of MarkRecords-in Coverage order'), 428 ]), 429 430 ('MarkRecord', [ 431 ('uint16', 'Class', None, None, 'Class defined for this mark'), 432 ('Offset', 'MarkAnchor', None, None, 'Offset to Anchor table-from beginning of MarkArray table'), 433 ]), 434 435 436 # 437 # gsub 438 # 439 440 ('GSUB', [ 441 ('Version', 'Version', None, None, 'Version of the GSUB table-initially set to 0x00010000'), 442 ('Offset', 'ScriptList', None, None, 'Offset to ScriptList table-from beginning of GSUB table'), 443 ('Offset', 'FeatureList', None, None, 'Offset to FeatureList table-from beginning of GSUB table'), 444 ('Offset', 'LookupList', None, None, 'Offset to LookupList table-from beginning of GSUB table'), 445 ]), 446 447 ('SingleSubstFormat1', [ 448 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'), 449 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 450 ('int16', 'DeltaGlyphID', None, None, 'Add to original GlyphID to get substitute GlyphID'), 451 ]), 452 453 ('SingleSubstFormat2', [ 454 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 2'), 455 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 456 ('uint16', 'GlyphCount', None, None, 'Number of GlyphIDs in the Substitute array'), 457 ('GlyphID', 'Substitute', 'GlyphCount', 0, 'Array of substitute GlyphIDs-ordered by Coverage Index'), 458 ]), 459 460 ('MultipleSubstFormat1', [ 461 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'), 462 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 463 ('uint16', 'SequenceCount', None, None, 'Number of Sequence table offsets in the Sequence array'), 464 ('Offset', 'Sequence', 'SequenceCount', 0, 'Array of offsets to Sequence tables-from beginning of Substitution table-ordered by Coverage Index'), 465 ]), 466 467 ('Sequence', [ 468 ('uint16', 'GlyphCount', None, None, 'Number of GlyphIDs in the Substitute array. This should always be greater than 0.'), 469 ('GlyphID', 'Substitute', 'GlyphCount', 0, 'String of GlyphIDs to substitute'), 470 ]), 471 472 ('AlternateSubstFormat1', [ 473 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'), 474 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 475 ('uint16', 'AlternateSetCount', None, None, 'Number of AlternateSet tables'), 476 ('Offset', 'AlternateSet', 'AlternateSetCount', 0, 'Array of offsets to AlternateSet tables-from beginning of Substitution table-ordered by Coverage Index'), 477 ]), 478 479 ('AlternateSet', [ 480 ('uint16', 'GlyphCount', None, None, 'Number of GlyphIDs in the Alternate array'), 481 ('GlyphID', 'Alternate', 'GlyphCount', 0, 'Array of alternate GlyphIDs-in arbitrary order'), 482 ]), 483 484 ('LigatureSubstFormat1', [ 485 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'), 486 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 487 ('uint16', 'LigSetCount', None, None, 'Number of LigatureSet tables'), 488 ('Offset', 'LigatureSet', 'LigSetCount', 0, 'Array of offsets to LigatureSet tables-from beginning of Substitution table-ordered by Coverage Index'), 489 ]), 490 491 ('LigatureSet', [ 492 ('uint16', 'LigatureCount', None, None, 'Number of Ligature tables'), 493 ('Offset', 'Ligature', 'LigatureCount', 0, 'Array of offsets to Ligature tables-from beginning of LigatureSet table-ordered by preference'), 494 ]), 495 496 ('Ligature', [ 497 ('GlyphID', 'LigGlyph', None, None, 'GlyphID of ligature to substitute'), 498 ('uint16', 'CompCount', None, None, 'Number of components in the ligature'), 499 ('GlyphID', 'Component', 'CompCount', -1, 'Array of component GlyphIDs-start with the second component-ordered in writing direction'), 500 ]), 501 502 ('SubstLookupRecord', [ 503 ('uint16', 'SequenceIndex', None, None, 'Index into current glyph sequence-first glyph = 0'), 504 ('uint16', 'LookupListIndex', None, None, 'Lookup to apply to that position-zero-based'), 505 ]), 506 507 ('ContextSubstFormat1', [ 508 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'), 509 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 510 ('uint16', 'SubRuleSetCount', None, None, 'Number of SubRuleSet tables-must equal GlyphCount in Coverage table'), 511 ('Offset', 'SubRuleSet', 'SubRuleSetCount', 0, 'Array of offsets to SubRuleSet tables-from beginning of Substitution table-ordered by Coverage Index'), 512 ]), 513 514 ('SubRuleSet', [ 515 ('uint16', 'SubRuleCount', None, None, 'Number of SubRule tables'), 516 ('Offset', 'SubRule', 'SubRuleCount', 0, 'Array of offsets to SubRule tables-from beginning of SubRuleSet table-ordered by preference'), 517 ]), 518 519 ('SubRule', [ 520 ('uint16', 'GlyphCount', None, None, 'Total number of glyphs in input glyph sequence-includes the first glyph'), 521 ('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'), 522 ('GlyphID', 'Input', 'GlyphCount', -1, 'Array of input GlyphIDs-start with second glyph'), 523 ('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords-in design order'), 524 ]), 525 526 ('ContextSubstFormat2', [ 527 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 2'), 528 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 529 ('Offset', 'ClassDef', None, None, 'Offset to glyph ClassDef table-from beginning of Substitution table'), 530 ('uint16', 'SubClassSetCount', None, None, 'Number of SubClassSet tables'), 531 ('Offset', 'SubClassSet', 'SubClassSetCount', 0, 'Array of offsets to SubClassSet tables-from beginning of Substitution table-ordered by class-may be NULL'), 532 ]), 533 534 ('SubClassSet', [ 535 ('uint16', 'SubClassRuleCount', None, None, 'Number of SubClassRule tables'), 536 ('Offset', 'SubClassRule', 'SubClassRuleCount', 0, 'Array of offsets to SubClassRule tables-from beginning of SubClassSet-ordered by preference'), 537 ]), 538 539 ('SubClassRule', [ 540 ('uint16', 'GlyphCount', None, None, 'Total number of classes specified for the context in the rule-includes the first class'), 541 ('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'), 542 ('uint16', 'Class', 'GlyphCount', -1, 'Array of classes-beginning with the second class-to be matched to the input glyph class sequence'), 543 ('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of Substitution lookups-in design order'), 544 ]), 545 546 ('ContextSubstFormat3', [ 547 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 3'), 548 ('uint16', 'GlyphCount', None, None, 'Number of glyphs in the input glyph sequence'), 549 ('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'), 550 ('Offset', 'Coverage', 'GlyphCount', 0, 'Array of offsets to Coverage table-from beginning of Substitution table-in glyph sequence order'), 551 ('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords-in design order'), 552 ]), 553 554 ('ChainContextSubstFormat1', [ 555 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'), 556 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 557 ('uint16', 'ChainSubRuleSetCount', None, None, 'Number of ChainSubRuleSet tables-must equal GlyphCount in Coverage table'), 558 ('Offset', 'ChainSubRuleSet', 'ChainSubRuleSetCount', 0, 'Array of offsets to ChainSubRuleSet tables-from beginning of Substitution table-ordered by Coverage Index'), 559 ]), 560 561 ('ChainSubRuleSet', [ 562 ('uint16', 'ChainSubRuleCount', None, None, 'Number of ChainSubRule tables'), 563 ('Offset', 'ChainSubRule', 'ChainSubRuleCount', 0, 'Array of offsets to ChainSubRule tables-from beginning of ChainSubRuleSet table-ordered by preference'), 564 ]), 565 566 ('ChainSubRule', [ 567 ('uint16', 'BacktrackGlyphCount', None, None, 'Total number of glyphs in the backtrack sequence (number of glyphs to be matched before the first glyph)'), 568 ('GlyphID', 'Backtrack', 'BacktrackGlyphCount', 0, "Array of backtracking GlyphID's (to be matched before the input sequence)"), 569 ('uint16', 'InputGlyphCount', None, None, 'Total number of glyphs in the input sequence (includes the first glyph)'), 570 ('GlyphID', 'Input', 'InputGlyphCount', -1, 'Array of input GlyphIDs (start with second glyph)'), 571 ('uint16', 'LookAheadGlyphCount', None, None, 'Total number of glyphs in the look ahead sequence (number of glyphs to be matched after the input sequence)'), 572 ('GlyphID', 'LookAhead', 'LookAheadGlyphCount', 0, "Array of lookahead GlyphID's (to be matched after the input sequence)"), 573 ('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'), 574 ('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords (in design order)'), 575 ]), 576 577 ('ChainContextSubstFormat2', [ 578 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 2'), 579 ('Offset', 'Coverage', None, None, 'Offset to Coverage table-from beginning of Substitution table'), 580 ('Offset', 'BacktrackClassDef', None, None, 'Offset to glyph ClassDef table containing backtrack sequence data-from beginning of Substitution table'), 581 ('Offset', 'InputClassDef', None, None, 'Offset to glyph ClassDef table containing input sequence data-from beginning of Substitution table'), 582 ('Offset', 'LookAheadClassDef', None, None, 'Offset to glyph ClassDef table containing lookahead sequence data-from beginning of Substitution table'), 583 ('uint16', 'ChainSubClassSetCount', None, None, 'Number of ChainSubClassSet tables'), 584 ('Offset', 'ChainSubClassSet', 'ChainSubClassSetCount', 0, 'Array of offsets to ChainSubClassSet tables-from beginning of Substitution table-ordered by input class-may be NULL'), 585 ]), 586 587 ('ChainSubClassSet', [ 588 ('uint16', 'ChainSubClassRuleCount', None, None, 'Number of ChainSubClassRule tables'), 589 ('Offset', 'ChainSubClassRule', 'ChainSubClassRuleCount', 0, 'Array of offsets to ChainSubClassRule tables-from beginning of ChainSubClassSet-ordered by preference'), 590 ]), 591 592 ('ChainSubClassRule', [ 593 ('uint16', 'BacktrackGlyphCount', None, None, 'Total number of glyphs in the backtrack sequence (number of glyphs to be matched before the first glyph)'), 594 ('uint16', 'Backtrack', 'BacktrackGlyphCount', 0, 'Array of backtracking classes(to be matched before the input sequence)'), 595 ('uint16', 'InputGlyphCount', None, None, 'Total number of classes in the input sequence (includes the first class)'), 596 ('uint16', 'Input', 'InputGlyphCount', -1, 'Array of input classes(start with second class; to be matched with the input glyph sequence)'), 597 ('uint16', 'LookAheadGlyphCount', None, None, 'Total number of classes in the look ahead sequence (number of classes to be matched after the input sequence)'), 598 ('uint16', 'LookAhead', 'LookAheadGlyphCount', 0, 'Array of lookahead classes(to be matched after the input sequence)'), 599 ('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'), 600 ('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords (in design order)'), 601 ]), 602 603 ('ChainContextSubstFormat3', [ 604 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 3'), 605 ('uint16', 'BacktrackGlyphCount', None, None, 'Number of glyphs in the backtracking sequence'), 606 ('Offset', 'BacktrackCoverage', 'BacktrackGlyphCount', 0, 'Array of offsets to coverage tables in backtracking sequence, in glyph sequence order'), 607 ('uint16', 'InputGlyphCount', None, None, 'Number of glyphs in input sequence'), 608 ('Offset', 'InputCoverage', 'InputGlyphCount', 0, 'Array of offsets to coverage tables in input sequence, in glyph sequence order'), 609 ('uint16', 'LookAheadGlyphCount', None, None, 'Number of glyphs in lookahead sequence'), 610 ('Offset', 'LookAheadCoverage', 'LookAheadGlyphCount', 0, 'Array of offsets to coverage tables in lookahead sequence, in glyph sequence order'), 611 ('uint16', 'SubstCount', None, None, 'Number of SubstLookupRecords'), 612 ('struct', 'SubstLookupRecord', 'SubstCount', 0, 'Array of SubstLookupRecords, in design order'), 613 ]), 614 615 ('ExtensionSubstFormat1', [ 616 ('uint16', 'ExtFormat', None, None, 'Format identifier. Set to 1.'), 617 ('uint16', 'ExtensionLookupType', None, None, 'Lookup type of subtable referenced by ExtensionOffset (i.e. the extension subtable).'), 618 ('LOffset', 'ExtSubTable', None, None, 'Array of offsets to Lookup tables-from beginning of LookupList -zero based (first lookup is Lookup index = 0)'), 619 ]), 620 621 ('ReverseChainSingleSubstFormat1', [ 622 ('uint16', 'SubstFormat', None, None, 'Format identifier-format = 1'), 623 ('Offset', 'Coverage', None, 0, 'Offset to Coverage table - from beginning of Substitution table'), 624 ('uint16', 'BacktrackGlyphCount', None, None, 'Number of glyphs in the backtracking sequence'), 625 ('Offset', 'BacktrackCoverage', 'BacktrackGlyphCount', 0, 'Array of offsets to coverage tables in backtracking sequence, in glyph sequence order'), 626 ('uint16', 'LookAheadGlyphCount', None, None, 'Number of glyphs in lookahead sequence'), 627 ('Offset', 'LookAheadCoverage', 'LookAheadGlyphCount', 0, 'Array of offsets to coverage tables in lookahead sequence, in glyph sequence order'), 628 ('uint16', 'GlyphCount', None, None, 'Number of GlyphIDs in the Substitute array'), 629 ('GlyphID', 'Substitute', 'GlyphCount', 0, 'Array of substitute GlyphIDs-ordered by Coverage index'), 630 ]), 631 632 # 633 # gdef 634 # 635 636 ('GDEF', [ 637 ('Version', 'Version', None, None, 'Version of the GDEF table-initially 0x00010000'), 638 ('Offset', 'GlyphClassDef', None, None, 'Offset to class definition table for glyph type-from beginning of GDEF header (may be NULL)'), 639 ('Offset', 'AttachList', None, None, 'Offset to list of glyphs with attachment points-from beginning of GDEF header (may be NULL)'), 640 ('Offset', 'LigCaretList', None, None, 'Offset to list of positioning points for ligature carets-from beginning of GDEF header (may be NULL)'), 641 ('Offset', 'MarkAttachClassDef', None, None, 'Offset to class definition table for mark attachment type-from beginning of GDEF header (may be NULL)'), 642 ('Offset', 'MarkGlyphSetsDef', None, 'int(round(Version*0x10000)) >= 0x00010002', 'Offset to the table of mark set definitions-from beginning of GDEF header (may be NULL)'), 643 ]), 644 645 ('AttachList', [ 646 ('Offset', 'Coverage', None, None, 'Offset to Coverage table - from beginning of AttachList table'), 647 ('uint16', 'GlyphCount', None, None, 'Number of glyphs with attachment points'), 648 ('Offset', 'AttachPoint', 'GlyphCount', 0, 'Array of offsets to AttachPoint tables-from beginning of AttachList table-in Coverage Index order'), 649 ]), 650 651 ('AttachPoint', [ 652 ('uint16', 'PointCount', None, None, 'Number of attachment points on this glyph'), 653 ('uint16', 'PointIndex', 'PointCount', 0, 'Array of contour point indices -in increasing numerical order'), 654 ]), 655 656 ('LigCaretList', [ 657 ('Offset', 'Coverage', None, None, 'Offset to Coverage table - from beginning of LigCaretList table'), 658 ('uint16', 'LigGlyphCount', None, None, 'Number of ligature glyphs'), 659 ('Offset', 'LigGlyph', 'LigGlyphCount', 0, 'Array of offsets to LigGlyph tables-from beginning of LigCaretList table-in Coverage Index order'), 660 ]), 661 662 ('LigGlyph', [ 663 ('uint16', 'CaretCount', None, None, 'Number of CaretValues for this ligature (components - 1)'), 664 ('Offset', 'CaretValue', 'CaretCount', 0, 'Array of offsets to CaretValue tables-from beginning of LigGlyph table-in increasing coordinate order'), 665 ]), 666 667 ('CaretValueFormat1', [ 668 ('uint16', 'CaretValueFormat', None, None, 'Format identifier-format = 1'), 669 ('int16', 'Coordinate', None, None, 'X or Y value, in design units'), 670 ]), 671 672 ('CaretValueFormat2', [ 673 ('uint16', 'CaretValueFormat', None, None, 'Format identifier-format = 2'), 674 ('uint16', 'CaretValuePoint', None, None, 'Contour point index on glyph'), 675 ]), 676 677 ('CaretValueFormat3', [ 678 ('uint16', 'CaretValueFormat', None, None, 'Format identifier-format = 3'), 679 ('int16', 'Coordinate', None, None, 'X or Y value, in design units'), 680 ('Offset', 'DeviceTable', None, None, 'Offset to Device table for X or Y value-from beginning of CaretValue table'), 681 ]), 682 683 ('MarkGlyphSetsDef', [ 684 ('uint16', 'MarkSetTableFormat', None, None, 'Format identifier == 1'), 685 ('uint16', 'MarkSetCount', None, None, 'Number of mark sets defined'), 686 ('LOffset', 'Coverage', 'MarkSetCount', 0, 'Array of offsets to mark set coverage tables.'), 687 ]), 688 689 # 690 # base 691 # 692 693 ('BASE', [ 694 ('Version', 'Version', None, None, 'Version of the BASE table-initially 0x00010000'), 695 ('Offset', 'HorizAxis', None, None, 'Offset to horizontal Axis table-from beginning of BASE table-may be NULL'), 696 ('Offset', 'VertAxis', None, None, 'Offset to vertical Axis table-from beginning of BASE table-may be NULL'), 697 ]), 698 699 ('Axis', [ 700 ('Offset', 'BaseTagList', None, None, 'Offset to BaseTagList table-from beginning of Axis table-may be NULL'), 701 ('Offset', 'BaseScriptList', None, None, 'Offset to BaseScriptList table-from beginning of Axis table'), 702 ]), 703 704 ('BaseTagList', [ 705 ('uint16', 'BaseTagCount', None, None, 'Number of baseline identification tags in this text direction-may be zero (0)'), 706 ('Tag', 'BaselineTag', 'BaseTagCount', 0, 'Array of 4-byte baseline identification tags-must be in alphabetical order'), 707 ]), 708 709 ('BaseScriptList', [ 710 ('uint16', 'BaseScriptCount', None, None, 'Number of BaseScriptRecords defined'), 711 ('struct', 'BaseScriptRecord', 'BaseScriptCount', 0, 'Array of BaseScriptRecords-in alphabetical order by BaseScriptTag'), 712 ]), 713 714 ('BaseScriptRecord', [ 715 ('Tag', 'BaseScriptTag', None, None, '4-byte script identification tag'), 716 ('Offset', 'BaseScript', None, None, 'Offset to BaseScript table-from beginning of BaseScriptList'), 717 ]), 718 719 ('BaseScript', [ 720 ('Offset', 'BaseValues', None, None, 'Offset to BaseValues table-from beginning of BaseScript table-may be NULL'), 721 ('Offset', 'DefaultMinMax', None, None, 'Offset to MinMax table- from beginning of BaseScript table-may be NULL'), 722 ('uint16', 'BaseLangSysCount', None, None, 'Number of BaseLangSysRecords defined-may be zero (0)'), 723 ('struct', 'BaseLangSysRecord', 'BaseLangSysCount', 0, 'Array of BaseLangSysRecords-in alphabetical order by BaseLangSysTag'), 724 ]), 725 726 ('BaseLangSysRecord', [ 727 ('Tag', 'BaseLangSysTag', None, None, '4-byte language system identification tag'), 728 ('Offset', 'MinMax', None, None, 'Offset to MinMax table-from beginning of BaseScript table'), 729 ]), 730 731 ('BaseValues', [ 732 ('uint16', 'DefaultIndex', None, None, 'Index number of default baseline for this script-equals index position of baseline tag in BaselineArray of the BaseTagList'), 733 ('uint16', 'BaseCoordCount', None, None, 'Number of BaseCoord tables defined-should equal BaseTagCount in the BaseTagList'), 734 ('Offset', 'BaseCoord', 'BaseCoordCount', 0, 'Array of offsets to BaseCoord-from beginning of BaseValues table-order matches BaselineTag array in the BaseTagList'), 735 ]), 736 737 ('MinMax', [ 738 ('Offset', 'MinCoord', None, None, 'Offset to BaseCoord table-defines minimum extent value-from the beginning of MinMax table-may be NULL'), 739 ('Offset', 'MaxCoord', None, None, 'Offset to BaseCoord table-defines maximum extent value-from the beginning of MinMax table-may be NULL'), 740 ('uint16', 'FeatMinMaxCount', None, None, 'Number of FeatMinMaxRecords-may be zero (0)'), 741 ('struct', 'FeatMinMaxRecord', 'FeatMinMaxCount', 0, 'Array of FeatMinMaxRecords-in alphabetical order, by FeatureTableTag'), 742 ]), 743 744 ('FeatMinMaxRecord', [ 745 ('Tag', 'FeatureTableTag', None, None, '4-byte feature identification tag-must match FeatureTag in FeatureList'), 746 ('Offset', 'MinCoord', None, None, 'Offset to BaseCoord table-defines minimum extent value-from beginning of MinMax table-may be NULL'), 747 ('Offset', 'MaxCoord', None, None, 'Offset to BaseCoord table-defines maximum extent value-from beginning of MinMax table-may be NULL'), 748 ]), 749 750 ('BaseCoordFormat1', [ 751 ('uint16', 'BaseCoordFormat', None, None, 'Format identifier-format = 1'), 752 ('int16', 'Coordinate', None, None, 'X or Y value, in design units'), 753 ]), 754 755 ('BaseCoordFormat2', [ 756 ('uint16', 'BaseCoordFormat', None, None, 'Format identifier-format = 2'), 757 ('int16', 'Coordinate', None, None, 'X or Y value, in design units'), 758 ('GlyphID', 'ReferenceGlyph', None, None, 'GlyphID of control glyph'), 759 ('uint16', 'BaseCoordPoint', None, None, 'Index of contour point on the ReferenceGlyph'), 760 ]), 761 762 ('BaseCoordFormat3', [ 763 ('uint16', 'BaseCoordFormat', None, None, 'Format identifier-format = 3'), 764 ('int16', 'Coordinate', None, None, 'X or Y value, in design units'), 765 ('Offset', 'DeviceTable', None, None, 'Offset to Device table for X or Y value'), 766 ]), 767 768 769 # 770 # jstf 771 # 772 773 ('JSTF', [ 774 ('Version', 'Version', None, None, 'Version of the JSTF table-initially set to 0x00010000'), 775 ('uint16', 'JstfScriptCount', None, None, 'Number of JstfScriptRecords in this table'), 776 ('struct', 'JstfScriptRecord', 'JstfScriptCount', 0, 'Array of JstfScriptRecords-in alphabetical order, by JstfScriptTag'), 777 ]), 778 779 ('JstfScriptRecord', [ 780 ('Tag', 'JstfScriptTag', None, None, '4-byte JstfScript identification'), 781 ('Offset', 'JstfScript', None, None, 'Offset to JstfScript table-from beginning of JSTF Header'), 782 ]), 783 784 ('JstfScript', [ 785 ('Offset', 'ExtenderGlyph', None, None, 'Offset to ExtenderGlyph table-from beginning of JstfScript table-may be NULL'), 786 ('Offset', 'DefJstfLangSys', None, None, 'Offset to Default JstfLangSys table-from beginning of JstfScript table-may be NULL'), 787 ('uint16', 'JstfLangSysCount', None, None, 'Number of JstfLangSysRecords in this table- may be zero (0)'), 788 ('struct', 'JstfLangSysRecord', 'JstfLangSysCount', 0, 'Array of JstfLangSysRecords-in alphabetical order, by JstfLangSysTag'), 789 ]), 790 791 ('JstfLangSysRecord', [ 792 ('Tag', 'JstfLangSysTag', None, None, '4-byte JstfLangSys identifier'), 793 ('Offset', 'JstfLangSys', None, None, 'Offset to JstfLangSys table-from beginning of JstfScript table'), 794 ]), 795 796 ('ExtenderGlyph', [ 797 ('uint16', 'GlyphCount', None, None, 'Number of Extender Glyphs in this script'), 798 ('GlyphID', 'ExtenderGlyph', 'GlyphCount', 0, 'GlyphIDs-in increasing numerical order'), 799 ]), 800 801 ('JstfLangSys', [ 802 ('uint16', 'JstfPriorityCount', None, None, 'Number of JstfPriority tables'), 803 ('Offset', 'JstfPriority', 'JstfPriorityCount', 0, 'Array of offsets to JstfPriority tables-from beginning of JstfLangSys table-in priority order'), 804 ]), 805 806 ('JstfPriority', [ 807 ('Offset', 'ShrinkageEnableGSUB', None, None, 'Offset to Shrinkage Enable JstfGSUBModList table-from beginning of JstfPriority table-may be NULL'), 808 ('Offset', 'ShrinkageDisableGSUB', None, None, 'Offset to Shrinkage Disable JstfGSUBModList table-from beginning of JstfPriority table-may be NULL'), 809 ('Offset', 'ShrinkageEnableGPOS', None, None, 'Offset to Shrinkage Enable JstfGPOSModList table-from beginning of JstfPriority table-may be NULL'), 810 ('Offset', 'ShrinkageDisableGPOS', None, None, 'Offset to Shrinkage Disable JstfGPOSModList table-from beginning of JstfPriority table-may be NULL'), 811 ('Offset', 'ShrinkageJstfMax', None, None, 'Offset to Shrinkage JstfMax table-from beginning of JstfPriority table -may be NULL'), 812 ('Offset', 'ExtensionEnableGSUB', None, None, 'Offset to Extension Enable JstfGSUBModList table-may be NULL'), 813 ('Offset', 'ExtensionDisableGSUB', None, None, 'Offset to Extension Disable JstfGSUBModList table-from beginning of JstfPriority table-may be NULL'), 814 ('Offset', 'ExtensionEnableGPOS', None, None, 'Offset to Extension Enable JstfGSUBModList table-may be NULL'), 815 ('Offset', 'ExtensionDisableGPOS', None, None, 'Offset to Extension Disable JstfGSUBModList table-from beginning of JstfPriority table-may be NULL'), 816 ('Offset', 'ExtensionJstfMax', None, None, 'Offset to Extension JstfMax table-from beginning of JstfPriority table -may be NULL'), 817 ]), 818 819 ('JstfGSUBModList', [ 820 ('uint16', 'LookupCount', None, None, 'Number of lookups for this modification'), 821 ('uint16', 'GSUBLookupIndex', 'LookupCount', 0, 'Array of LookupIndex identifiers in GSUB-in increasing numerical order'), 822 ]), 823 824 ('JstfGPOSModList', [ 825 ('uint16', 'LookupCount', None, None, 'Number of lookups for this modification'), 826 ('uint16', 'GPOSLookupIndex', 'LookupCount', 0, 'Array of LookupIndex identifiers in GPOS-in increasing numerical order'), 827 ]), 828 829 ('JstfMax', [ 830 ('uint16', 'LookupCount', None, None, 'Number of lookup Indices for this modification'), 831 ('Offset', 'Lookup', 'LookupCount', 0, 'Array of offsets to GPOS-type lookup tables-from beginning of JstfMax table-in design order'), 832 ]), 833 834 # 835 # math 836 # 837 838 ('MATH', [ 839 ('Version', 'Version', None, None, 'Version of the MATH table-initially set to 0x00010000.'), 840 ('Offset', 'MathConstants', None, None, 'Offset to MathConstants table - from the beginning of MATH table.'), 841 ('Offset', 'MathGlyphInfo', None, None, 'Offset to MathGlyphInfo table - from the beginning of MATH table.'), 842 ('Offset', 'MathVariants', None, None, 'Offset to MathVariants table - from the beginning of MATH table.'), 843 ]), 844 845 ('MathValueRecord', [ 846 ('int16', 'Value', None, None, 'The X or Y value in design units.'), 847 ('Offset', 'DeviceTable', None, None, 'Offset to the device table - from the beginning of parent table. May be NULL. Suggested format for device table is 1.'), 848 ]), 849 850 ('MathConstants', [ 851 ('int16', 'ScriptPercentScaleDown', None, None, 'Percentage of scaling down for script level 1. Suggested value: 80%.'), 852 ('int16', 'ScriptScriptPercentScaleDown', None, None, 'Percentage of scaling down for script level 2 (ScriptScript). Suggested value: 60%.'), 853 ('uint16', 'DelimitedSubFormulaMinHeight', None, None, 'Minimum height required for a delimited expression to be treated as a subformula. Suggested value: normal line height x1.5.'), 854 ('uint16', 'DisplayOperatorMinHeight', None, None, 'Minimum height of n-ary operators (such as integral and summation) for formulas in display mode.'), 855 ('MathValueRecord', 'MathLeading', None, None, 'White space to be left between math formulas to ensure proper line spacing. For example, for applications that treat line gap as a part of line ascender, formulas with ink going above (os2.sTypoAscender + os2.sTypoLineGap - MathLeading) or with ink going below os2.sTypoDescender will result in increasing line height.'), 856 ('MathValueRecord', 'AxisHeight', None, None, 'Axis height of the font.'), 857 ('MathValueRecord', 'AccentBaseHeight', None, None, 'Maximum (ink) height of accent base that does not require raising the accents. Suggested: x-height of the font (os2.sxHeight) plus any possible overshots.'), 858 ('MathValueRecord', 'FlattenedAccentBaseHeight', None, None, 'Maximum (ink) height of accent base that does not require flattening the accents. Suggested: cap height of the font (os2.sCapHeight).'), 859 ('MathValueRecord', 'SubscriptShiftDown', None, None, 'The standard shift down applied to subscript elements. Positive for moving in the downward direction. Suggested: os2.ySubscriptYOffset.'), 860 ('MathValueRecord', 'SubscriptTopMax', None, None, 'Maximum allowed height of the (ink) top of subscripts that does not require moving subscripts further down. Suggested: 4/5 x-height.'), 861 ('MathValueRecord', 'SubscriptBaselineDropMin', None, None, 'Minimum allowed drop of the baseline of subscripts relative to the (ink) bottom of the base. Checked for bases that are treated as a box or extended shape. Positive for subscript baseline dropped below the base bottom.'), 862 ('MathValueRecord', 'SuperscriptShiftUp', None, None, 'Standard shift up applied to superscript elements. Suggested: os2.ySuperscriptYOffset.'), 863 ('MathValueRecord', 'SuperscriptShiftUpCramped', None, None, 'Standard shift of superscripts relative to the base, in cramped style.'), 864 ('MathValueRecord', 'SuperscriptBottomMin', None, None, 'Minimum allowed height of the (ink) bottom of superscripts that does not require moving subscripts further up. Suggested: 1/4 x-height.'), 865 ('MathValueRecord', 'SuperscriptBaselineDropMax', None, None, 'Maximum allowed drop of the baseline of superscripts relative to the (ink) top of the base. Checked for bases that are treated as a box or extended shape. Positive for superscript baseline below the base top.'), 866 ('MathValueRecord', 'SubSuperscriptGapMin', None, None, 'Minimum gap between the superscript and subscript ink. Suggested: 4x default rule thickness.'), 867 ('MathValueRecord', 'SuperscriptBottomMaxWithSubscript', None, None, 'The maximum level to which the (ink) bottom of superscript can be pushed to increase the gap between superscript and subscript, before subscript starts being moved down. Suggested: 4/5 x-height.'), 868 ('MathValueRecord', 'SpaceAfterScript', None, None, 'Extra white space to be added after each subscript and superscript. Suggested: 0.5pt for a 12 pt font.'), 869 ('MathValueRecord', 'UpperLimitGapMin', None, None, 'Minimum gap between the (ink) bottom of the upper limit, and the (ink) top of the base operator.'), 870 ('MathValueRecord', 'UpperLimitBaselineRiseMin', None, None, 'Minimum distance between baseline of upper limit and (ink) top of the base operator.'), 871 ('MathValueRecord', 'LowerLimitGapMin', None, None, 'Minimum gap between (ink) top of the lower limit, and (ink) bottom of the base operator.'), 872 ('MathValueRecord', 'LowerLimitBaselineDropMin', None, None, 'Minimum distance between baseline of the lower limit and (ink) bottom of the base operator.'), 873 ('MathValueRecord', 'StackTopShiftUp', None, None, 'Standard shift up applied to the top element of a stack.'), 874 ('MathValueRecord', 'StackTopDisplayStyleShiftUp', None, None, 'Standard shift up applied to the top element of a stack in display style.'), 875 ('MathValueRecord', 'StackBottomShiftDown', None, None, 'Standard shift down applied to the bottom element of a stack. Positive for moving in the downward direction.'), 876 ('MathValueRecord', 'StackBottomDisplayStyleShiftDown', None, None, 'Standard shift down applied to the bottom element of a stack in display style. Positive for moving in the downward direction.'), 877 ('MathValueRecord', 'StackGapMin', None, None, 'Minimum gap between (ink) bottom of the top element of a stack, and the (ink) top of the bottom element. Suggested: 3x default rule thickness.'), 878 ('MathValueRecord', 'StackDisplayStyleGapMin', None, None, 'Minimum gap between (ink) bottom of the top element of a stack, and the (ink) top of the bottom element in display style. Suggested: 7x default rule thickness.'), 879 ('MathValueRecord', 'StretchStackTopShiftUp', None, None, 'Standard shift up applied to the top element of the stretch stack.'), 880 ('MathValueRecord', 'StretchStackBottomShiftDown', None, None, 'Standard shift down applied to the bottom element of the stretch stack. Positive for moving in the downward direction.'), 881 ('MathValueRecord', 'StretchStackGapAboveMin', None, None, 'Minimum gap between the ink of the stretched element, and the (ink) bottom of the element above. Suggested: UpperLimitGapMin'), 882 ('MathValueRecord', 'StretchStackGapBelowMin', None, None, 'Minimum gap between the ink of the stretched element, and the (ink) top of the element below. Suggested: LowerLimitGapMin.'), 883 ('MathValueRecord', 'FractionNumeratorShiftUp', None, None, 'Standard shift up applied to the numerator.'), 884 ('MathValueRecord', 'FractionNumeratorDisplayStyleShiftUp', None, None, 'Standard shift up applied to the numerator in display style. Suggested: StackTopDisplayStyleShiftUp.'), 885 ('MathValueRecord', 'FractionDenominatorShiftDown', None, None, 'Standard shift down applied to the denominator. Positive for moving in the downward direction.'), 886 ('MathValueRecord', 'FractionDenominatorDisplayStyleShiftDown', None, None, 'Standard shift down applied to the denominator in display style. Positive for moving in the downward direction. Suggested: StackBottomDisplayStyleShiftDown.'), 887 ('MathValueRecord', 'FractionNumeratorGapMin', None, None, 'Minimum tolerated gap between the (ink) bottom of the numerator and the ink of the fraction bar. Suggested: default rule thickness'), 888 ('MathValueRecord', 'FractionNumDisplayStyleGapMin', None, None, 'Minimum tolerated gap between the (ink) bottom of the numerator and the ink of the fraction bar in display style. Suggested: 3x default rule thickness.'), 889 ('MathValueRecord', 'FractionRuleThickness', None, None, 'Thickness of the fraction bar. Suggested: default rule thickness.'), 890 ('MathValueRecord', 'FractionDenominatorGapMin', None, None, 'Minimum tolerated gap between the (ink) top of the denominator and the ink of the fraction bar. Suggested: default rule thickness'), 891 ('MathValueRecord', 'FractionDenomDisplayStyleGapMin', None, None, 'Minimum tolerated gap between the (ink) top of the denominator and the ink of the fraction bar in display style. Suggested: 3x default rule thickness.'), 892 ('MathValueRecord', 'SkewedFractionHorizontalGap', None, None, 'Horizontal distance between the top and bottom elements of a skewed fraction.'), 893 ('MathValueRecord', 'SkewedFractionVerticalGap', None, None, 'Vertical distance between the ink of the top and bottom elements of a skewed fraction.'), 894 ('MathValueRecord', 'OverbarVerticalGap', None, None, 'Distance between the overbar and the (ink) top of he base. Suggested: 3x default rule thickness.'), 895 ('MathValueRecord', 'OverbarRuleThickness', None, None, 'Thickness of overbar. Suggested: default rule thickness.'), 896 ('MathValueRecord', 'OverbarExtraAscender', None, None, 'Extra white space reserved above the overbar. Suggested: default rule thickness.'), 897 ('MathValueRecord', 'UnderbarVerticalGap', None, None, 'Distance between underbar and (ink) bottom of the base. Suggested: 3x default rule thickness.'), 898 ('MathValueRecord', 'UnderbarRuleThickness', None, None, 'Thickness of underbar. Suggested: default rule thickness.'), 899 ('MathValueRecord', 'UnderbarExtraDescender', None, None, 'Extra white space reserved below the underbar. Always positive. Suggested: default rule thickness.'), 900 ('MathValueRecord', 'RadicalVerticalGap', None, None, 'Space between the (ink) top of the expression and the bar over it. Suggested: 1 1/4 default rule thickness.'), 901 ('MathValueRecord', 'RadicalDisplayStyleVerticalGap', None, None, 'Space between the (ink) top of the expression and the bar over it. Suggested: default rule thickness + 1/4 x-height.'), 902 ('MathValueRecord', 'RadicalRuleThickness', None, None, 'Thickness of the radical rule. This is the thickness of the rule in designed or constructed radical signs. Suggested: default rule thickness.'), 903 ('MathValueRecord', 'RadicalExtraAscender', None, None, 'Extra white space reserved above the radical. Suggested: RadicalRuleThickness.'), 904 ('MathValueRecord', 'RadicalKernBeforeDegree', None, None, 'Extra horizontal kern before the degree of a radical, if such is present. Suggested: 5/18 of em.'), 905 ('MathValueRecord', 'RadicalKernAfterDegree', None, None, 'Negative kern after the degree of a radical, if such is present. Suggested: 10/18 of em.'), 906 ('uint16', 'RadicalDegreeBottomRaisePercent', None, None, 'Height of the bottom of the radical degree, if such is present, in proportion to the ascender of the radical sign. Suggested: 60%.'), 907 ]), 908 909 ('MathGlyphInfo', [ 910 ('Offset', 'MathItalicsCorrectionInfo', None, None, 'Offset to MathItalicsCorrectionInfo table - from the beginning of MathGlyphInfo table.'), 911 ('Offset', 'MathTopAccentAttachment', None, None, 'Offset to MathTopAccentAttachment table - from the beginning of MathGlyphInfo table.'), 912 ('Offset', 'ExtendedShapeCoverage', None, None, 'Offset to coverage table for Extended Shape glyphs - from the beginning of MathGlyphInfo table. When the left or right glyph of a box is an extended shape variant, the (ink) box (and not the default position defined by values in MathConstants table) should be used for vertical positioning purposes. May be NULL.'), 913 ('Offset', 'MathKernInfo', None, None, 'Offset to MathKernInfo table - from the beginning of MathGlyphInfo table.'), 914 ]), 915 916 ('MathItalicsCorrectionInfo', [ 917 ('Offset', 'Coverage', None, None, 'Offset to Coverage table - from the beginning of MathItalicsCorrectionInfo table.'), 918 ('uint16', 'ItalicsCorrectionCount', None, None, 'Number of italics correction values. Should coincide with the number of covered glyphs.'), 919 ('MathValueRecord', 'ItalicsCorrection', 'ItalicsCorrectionCount', 0, 'Array of MathValueRecords defining italics correction values for each covered glyph.'), 920 ]), 921 922 ('MathTopAccentAttachment', [ 923 ('Offset', 'TopAccentCoverage', None, None, 'Offset to Coverage table - from the beginning of MathTopAccentAttachment table.'), 924 ('uint16', 'TopAccentAttachmentCount', None, None, 'Number of top accent attachment point values. Should coincide with the number of covered glyphs'), 925 ('MathValueRecord', 'TopAccentAttachment', 'TopAccentAttachmentCount', 0, 'Array of MathValueRecords defining top accent attachment points for each covered glyph'), 926 ]), 927 928 ('MathKernInfo', [ 929 ('Offset', 'MathKernCoverage', None, None, 'Offset to Coverage table - from the beginning of the MathKernInfo table.'), 930 ('uint16', 'MathKernCount', None, None, 'Number of MathKernInfoRecords.'), 931 ('MathKernInfoRecord', 'MathKernInfoRecords', 'MathKernCount', 0, 'Array of MathKernInfoRecords, per-glyph information for mathematical positioning of subscripts and superscripts.'), 932 ]), 933 934 ('MathKernInfoRecord', [ 935 ('Offset', 'TopRightMathKern', None, None, 'Offset to MathKern table for top right corner - from the beginning of MathKernInfo table. May be NULL.'), 936 ('Offset', 'TopLeftMathKern', None, None, 'Offset to MathKern table for the top left corner - from the beginning of MathKernInfo table. May be NULL.'), 937 ('Offset', 'BottomRightMathKern', None, None, 'Offset to MathKern table for bottom right corner - from the beginning of MathKernInfo table. May be NULL.'), 938 ('Offset', 'BottomLeftMathKern', None, None, 'Offset to MathKern table for bottom left corner - from the beginning of MathKernInfo table. May be NULL.'), 939 ]), 940 941 ('MathKern', [ 942 ('uint16', 'HeightCount', None, None, 'Number of heights on which the kern value changes.'), 943 ('MathValueRecord', 'CorrectionHeight', 'HeightCount', 0, 'Array of correction heights at which the kern value changes. Sorted by the height value in design units.'), 944 ('MathValueRecord', 'KernValue', 'HeightCount', 1, 'Array of kern values corresponding to heights. First value is the kern value for all heights less or equal than the first height in this table.Last value is the value to be applied for all heights greater than the last height in this table. Negative values are interpreted as move glyphs closer to each other.'), 945 ]), 946 947 ('MathVariants', [ 948 ('uint16', 'MinConnectorOverlap', None, None, 'Minimum overlap of connecting glyphs during glyph construction, in design units.'), 949 ('Offset', 'VertGlyphCoverage', None, None, 'Offset to Coverage table - from the beginning of MathVariants table.'), 950 ('Offset', 'HorizGlyphCoverage', None, None, 'Offset to Coverage table - from the beginning of MathVariants table.'), 951 ('uint16', 'VertGlyphCount', None, None, 'Number of glyphs for which information is provided for vertically growing variants.'), 952 ('uint16', 'HorizGlyphCount', None, None, 'Number of glyphs for which information is provided for horizontally growing variants.'), 953 ('Offset', 'VertGlyphConstruction', 'VertGlyphCount', 0, 'Array of offsets to MathGlyphConstruction tables - from the beginning of the MathVariants table, for shapes growing in vertical direction.'), 954 ('Offset', 'HorizGlyphConstruction', 'HorizGlyphCount', 0, 'Array of offsets to MathGlyphConstruction tables - from the beginning of the MathVariants table, for shapes growing in horizontal direction.'), 955 ]), 956 957 ('MathGlyphConstruction', [ 958 ('Offset', 'GlyphAssembly', None, None, 'Offset to GlyphAssembly table for this shape - from the beginning of MathGlyphConstruction table. May be NULL'), 959 ('uint16', 'VariantCount', None, None, 'Count of glyph growing variants for this glyph.'), 960 ('MathGlyphVariantRecord', 'MathGlyphVariantRecord', 'VariantCount', 0, 'MathGlyphVariantRecords for alternative variants of the glyphs.'), 961 ]), 962 963 ('MathGlyphVariantRecord', [ 964 ('GlyphID', 'VariantGlyph', None, None, 'Glyph ID for the variant.'), 965 ('uint16', 'AdvanceMeasurement', None, None, 'Advance width/height, in design units, of the variant, in the direction of requested glyph extension.'), 966 ]), 967 968 ('GlyphAssembly', [ 969 ('MathValueRecord', 'ItalicsCorrection', None, None, 'Italics correction of this GlyphAssembly. Should not depend on the assembly size.'), 970 ('uint16', 'PartCount', None, None, 'Number of parts in this assembly.'), 971 ('GlyphPartRecord', 'PartRecords', 'PartCount', 0, 'Array of part records, from left to right and bottom to top.'), 972 ]), 973 974 ('GlyphPartRecord', [ 975 ('GlyphID', 'glyph', None, None, 'Glyph ID for the part.'), 976 ('uint16', 'StartConnectorLength', None, None, 'Advance width/ height of the straight bar connector material, in design units, is at the beginning of the glyph, in the direction of the extension.'), 977 ('uint16', 'EndConnectorLength', None, None, 'Advance width/ height of the straight bar connector material, in design units, is at the end of the glyph, in the direction of the extension.'), 978 ('uint16', 'FullAdvance', None, None, 'Full advance width/height for this part, in the direction of the extension. In design units.'), 979 ('uint16', 'PartFlags', None, None, 'Part qualifiers. PartFlags enumeration currently uses only one bit: 0x0001 fExtender: If set, the part can be skipped or repeated. 0xFFFE Reserved'), 980 ]), 981 982] 983