"Array of offsets to SubTables-from beginning of Lookup table",
),
(
"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.",
"Offset to Mark Coverage table-from beginning of MarkLigPos subtable",
),
(
"Offset",
"LigatureCoverage",
None,
None,
"Offset to Ligature Coverage table-from beginning of MarkLigPos subtable",
),
("uint16","ClassCount",None,None,"Number of defined mark classes"),
(
"Offset",
"MarkArray",
None,
None,
"Offset to MarkArray table-from beginning of MarkLigPos subtable",
),
(
"Offset",
"LigatureArray",
None,
None,
"Offset to LigatureArray table-from beginning of MarkLigPos subtable",
),
],
),
(
"LigatureArray",
[
(
"uint16",
"LigatureCount",
None,
None,
"Number of LigatureAttach table offsets",
),
(
"Offset",
"LigatureAttach",
"LigatureCount",
0,
"Array of offsets to LigatureAttach tables-from beginning of LigatureArray table-ordered by LigatureCoverage Index",
),
],
),
(
"LigatureAttach",
[
(
"uint16",
"ComponentCount",
None,
None,
"Number of ComponentRecords in this ligature",
),
(
"struct",
"ComponentRecord",
"ComponentCount",
0,
"Array of Component records-ordered in writing direction",
),
],
),
(
"ComponentRecord",
[
(
"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",
"Version of the MATH table-initially set to 0x00010000.",
),
(
"Offset",
"MathConstants",
None,
None,
"Offset to MathConstants table - from the beginning of MATH table.",
),
(
"Offset",
"MathGlyphInfo",
None,
None,
"Offset to MathGlyphInfo table - from the beginning of MATH table.",
),
(
"Offset",
"MathVariants",
None,
None,
"Offset to MathVariants table - from the beginning of MATH table.",
),
],
),
(
"MathValueRecord",
[
("int16","Value",None,None,"The X or Y value in design units."),
(
"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.",
),
],
),
(
"MathConstants",
[
(
"int16",
"ScriptPercentScaleDown",
None,
None,
"Percentage of scaling down for script level 1. Suggested value: 80%.",
),
(
"int16",
"ScriptScriptPercentScaleDown",
None,
None,
"Percentage of scaling down for script level 2 (ScriptScript). Suggested value: 60%.",
),
(
"uint16",
"DelimitedSubFormulaMinHeight",
None,
None,
"Minimum height required for a delimited expression to be treated as a subformula. Suggested value: normal line height x1.5.",
),
(
"uint16",
"DisplayOperatorMinHeight",
None,
None,
"Minimum height of n-ary operators (such as integral and summation) for formulas in display mode.",
),
(
"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.",
),
("MathValueRecord","AxisHeight",None,None,"Axis height of the font."),
(
"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.",
),
(
"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).",
),
(
"MathValueRecord",
"SubscriptShiftDown",
None,
None,
"The standard shift down applied to subscript elements. Positive for moving in the downward direction. Suggested: os2.ySubscriptYOffset.",
),
(
"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.",
),
(
"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.",
),
(
"MathValueRecord",
"SuperscriptShiftUp",
None,
None,
"Standard shift up applied to superscript elements. Suggested: os2.ySuperscriptYOffset.",
),
(
"MathValueRecord",
"SuperscriptShiftUpCramped",
None,
None,
"Standard shift of superscripts relative to the base, in cramped style.",
),
(
"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.",
),
(
"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.",
),
(
"MathValueRecord",
"SubSuperscriptGapMin",
None,
None,
"Minimum gap between the superscript and subscript ink. Suggested: 4x default rule thickness.",
),
(
"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.",
),
(
"MathValueRecord",
"SpaceAfterScript",
None,
None,
"Extra white space to be added after each subscript and superscript. Suggested: 0.5pt for a 12 pt font.",
),
(
"MathValueRecord",
"UpperLimitGapMin",
None,
None,
"Minimum gap between the (ink) bottom of the upper limit, and the (ink) top of the base operator.",
),
(
"MathValueRecord",
"UpperLimitBaselineRiseMin",
None,
None,
"Minimum distance between baseline of upper limit and (ink) top of the base operator.",
),
(
"MathValueRecord",
"LowerLimitGapMin",
None,
None,
"Minimum gap between (ink) top of the lower limit, and (ink) bottom of the base operator.",
),
(
"MathValueRecord",
"LowerLimitBaselineDropMin",
None,
None,
"Minimum distance between baseline of the lower limit and (ink) bottom of the base operator.",
),
(
"MathValueRecord",
"StackTopShiftUp",
None,
None,
"Standard shift up applied to the top element of a stack.",
),
(
"MathValueRecord",
"StackTopDisplayStyleShiftUp",
None,
None,
"Standard shift up applied to the top element of a stack in display style.",
),
(
"MathValueRecord",
"StackBottomShiftDown",
None,
None,
"Standard shift down applied to the bottom element of a stack. Positive for moving in the downward direction.",
),
(
"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.",
),
(
"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.",
),
(
"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.",
),
(
"MathValueRecord",
"StretchStackTopShiftUp",
None,
None,
"Standard shift up applied to the top element of the stretch stack.",
),
(
"MathValueRecord",
"StretchStackBottomShiftDown",
None,
None,
"Standard shift down applied to the bottom element of the stretch stack. Positive for moving in the downward direction.",
),
(
"MathValueRecord",
"StretchStackGapAboveMin",
None,
None,
"Minimum gap between the ink of the stretched element, and the (ink) bottom of the element above. Suggested: UpperLimitGapMin",
),
(
"MathValueRecord",
"StretchStackGapBelowMin",
None,
None,
"Minimum gap between the ink of the stretched element, and the (ink) top of the element below. Suggested: LowerLimitGapMin.",
),
(
"MathValueRecord",
"FractionNumeratorShiftUp",
None,
None,
"Standard shift up applied to the numerator.",
),
(
"MathValueRecord",
"FractionNumeratorDisplayStyleShiftUp",
None,
None,
"Standard shift up applied to the numerator in display style. Suggested: StackTopDisplayStyleShiftUp.",
),
(
"MathValueRecord",
"FractionDenominatorShiftDown",
None,
None,
"Standard shift down applied to the denominator. Positive for moving in the downward direction.",
),
(
"MathValueRecord",
"FractionDenominatorDisplayStyleShiftDown",
None,
None,
"Standard shift down applied to the denominator in display style. Positive for moving in the downward direction. Suggested: StackBottomDisplayStyleShiftDown.",
),
(
"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",
),
(
"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.",
),
(
"MathValueRecord",
"FractionRuleThickness",
None,
None,
"Thickness of the fraction bar. Suggested: default rule thickness.",
),
(
"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",
),
(
"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.",
),
(
"MathValueRecord",
"SkewedFractionHorizontalGap",
None,
None,
"Horizontal distance between the top and bottom elements of a skewed fraction.",
),
(
"MathValueRecord",
"SkewedFractionVerticalGap",
None,
None,
"Vertical distance between the ink of the top and bottom elements of a skewed fraction.",
),
(
"MathValueRecord",
"OverbarVerticalGap",
None,
None,
"Distance between the overbar and the (ink) top of he base. Suggested: 3x default rule thickness.",
),
(
"MathValueRecord",
"OverbarRuleThickness",
None,
None,
"Thickness of overbar. Suggested: default rule thickness.",
),
(
"MathValueRecord",
"OverbarExtraAscender",
None,
None,
"Extra white space reserved above the overbar. Suggested: default rule thickness.",
),
(
"MathValueRecord",
"UnderbarVerticalGap",
None,
None,
"Distance between underbar and (ink) bottom of the base. Suggested: 3x default rule thickness.",
),
(
"MathValueRecord",
"UnderbarRuleThickness",
None,
None,
"Thickness of underbar. Suggested: default rule thickness.",
),
(
"MathValueRecord",
"UnderbarExtraDescender",
None,
None,
"Extra white space reserved below the underbar. Always positive. Suggested: default rule thickness.",
),
(
"MathValueRecord",
"RadicalVerticalGap",
None,
None,
"Space between the (ink) top of the expression and the bar over it. Suggested: 1 1/4 default rule thickness.",
),
(
"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.",
),
(
"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.",
),
(
"MathValueRecord",
"RadicalExtraAscender",
None,
None,
"Extra white space reserved above the radical. Suggested: RadicalRuleThickness.",
),
(
"MathValueRecord",
"RadicalKernBeforeDegree",
None,
None,
"Extra horizontal kern before the degree of a radical, if such is present. Suggested: 5/18 of em.",
),
(
"MathValueRecord",
"RadicalKernAfterDegree",
None,
None,
"Negative kern after the degree of a radical, if such is present. Suggested: 10/18 of em.",
),
(
"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%.",
),
],
),
(
"MathGlyphInfo",
[
(
"Offset",
"MathItalicsCorrectionInfo",
None,
None,
"Offset to MathItalicsCorrectionInfo table - from the beginning of MathGlyphInfo table.",
),
(
"Offset",
"MathTopAccentAttachment",
None,
None,
"Offset to MathTopAccentAttachment table - from the beginning of MathGlyphInfo table.",
),
(
"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.",
),
(
"Offset",
"MathKernInfo",
None,
None,
"Offset to MathKernInfo table - from the beginning of MathGlyphInfo table.",
),
],
),
(
"MathItalicsCorrectionInfo",
[
(
"Offset",
"Coverage",
None,
None,
"Offset to Coverage table - from the beginning of MathItalicsCorrectionInfo table.",
),
(
"uint16",
"ItalicsCorrectionCount",
None,
None,
"Number of italics correction values. Should coincide with the number of covered glyphs.",
),
(
"MathValueRecord",
"ItalicsCorrection",
"ItalicsCorrectionCount",
0,
"Array of MathValueRecords defining italics correction values for each covered glyph.",
),
],
),
(
"MathTopAccentAttachment",
[
(
"Offset",
"TopAccentCoverage",
None,
None,
"Offset to Coverage table - from the beginning of MathTopAccentAttachment table.",
),
(
"uint16",
"TopAccentAttachmentCount",
None,
None,
"Number of top accent attachment point values. Should coincide with the number of covered glyphs",
),
(
"MathValueRecord",
"TopAccentAttachment",
"TopAccentAttachmentCount",
0,
"Array of MathValueRecords defining top accent attachment points for each covered glyph",
),
],
),
(
"MathKernInfo",
[
(
"Offset",
"MathKernCoverage",
None,
None,
"Offset to Coverage table - from the beginning of the MathKernInfo table.",
),
("uint16","MathKernCount",None,None,"Number of MathKernInfoRecords."),
(
"MathKernInfoRecord",
"MathKernInfoRecords",
"MathKernCount",
0,
"Array of MathKernInfoRecords, per-glyph information for mathematical positioning of subscripts and superscripts.",
),
],
),
(
"MathKernInfoRecord",
[
(
"Offset",
"TopRightMathKern",
None,
None,
"Offset to MathKern table for top right corner - from the beginning of MathKernInfo table. May be NULL.",
),
(
"Offset",
"TopLeftMathKern",
None,
None,
"Offset to MathKern table for the top left corner - from the beginning of MathKernInfo table. May be NULL.",
),
(
"Offset",
"BottomRightMathKern",
None,
None,
"Offset to MathKern table for bottom right corner - from the beginning of MathKernInfo table. May be NULL.",
),
(
"Offset",
"BottomLeftMathKern",
None,
None,
"Offset to MathKern table for bottom left corner - from the beginning of MathKernInfo table. May be NULL.",
),
],
),
(
"MathKern",
[
(
"uint16",
"HeightCount",
None,
None,
"Number of heights on which the kern value changes.",
),
(
"MathValueRecord",
"CorrectionHeight",
"HeightCount",
0,
"Array of correction heights at which the kern value changes. Sorted by the height value in design units.",
),
(
"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.",
),
],
),
(
"MathVariants",
[
(
"uint16",
"MinConnectorOverlap",
None,
None,
"Minimum overlap of connecting glyphs during glyph construction, in design units.",
),
(
"Offset",
"VertGlyphCoverage",
None,
None,
"Offset to Coverage table - from the beginning of MathVariants table.",
),
(
"Offset",
"HorizGlyphCoverage",
None,
None,
"Offset to Coverage table - from the beginning of MathVariants table.",
),
(
"uint16",
"VertGlyphCount",
None,
None,
"Number of glyphs for which information is provided for vertically growing variants.",
),
(
"uint16",
"HorizGlyphCount",
None,
None,
"Number of glyphs for which information is provided for horizontally growing variants.",
),
(
"Offset",
"VertGlyphConstruction",
"VertGlyphCount",
0,
"Array of offsets to MathGlyphConstruction tables - from the beginning of the MathVariants table, for shapes growing in vertical direction.",
),
(
"Offset",
"HorizGlyphConstruction",
"HorizGlyphCount",
0,
"Array of offsets to MathGlyphConstruction tables - from the beginning of the MathVariants table, for shapes growing in horizontal direction.",
),
],
),
(
"MathGlyphConstruction",
[
(
"Offset",
"GlyphAssembly",
None,
None,
"Offset to GlyphAssembly table for this shape - from the beginning of MathGlyphConstruction table. May be NULL",
),
(
"uint16",
"VariantCount",
None,
None,
"Count of glyph growing variants for this glyph.",
),
(
"MathGlyphVariantRecord",
"MathGlyphVariantRecord",
"VariantCount",
0,
"MathGlyphVariantRecords for alternative variants of the glyphs.",
),
],
),
(
"MathGlyphVariantRecord",
[
("GlyphID","VariantGlyph",None,None,"Glyph ID for the variant."),
(
"uint16",
"AdvanceMeasurement",
None,
None,
"Advance width/height, in design units, of the variant, in the direction of requested glyph extension.",
),
],
),
(
"GlyphAssembly",
[
(
"MathValueRecord",
"ItalicsCorrection",
None,
None,
"Italics correction of this GlyphAssembly. Should not depend on the assembly size.",
),
("uint16","PartCount",None,None,"Number of parts in this assembly."),
(
"GlyphPartRecord",
"PartRecords",
"PartCount",
0,
"Array of part records, from left to right and bottom to top.",
),
],
),
(
"GlyphPartRecord",
[
("GlyphID","glyph",None,None,"Glyph ID for the part."),
(
"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.",
),
(
"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.",
),
(
"uint16",
"FullAdvance",
None,
None,
"Full advance width/height for this part, in the direction of the extension. In design units.",
),
(
"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",
),
],
),
##
## Apple Advanced Typography (AAT) tables
##
(
"AATLookupSegment",
[
("uint16","lastGlyph",None,None,"Last glyph index in this segment."),
("uint16","firstGlyph",None,None,"First glyph index in this segment."),
(
"uint16",
"value",
None,
None,
"A 16-bit offset from the start of the table to the data.",
("uint16","Format",None,None,"Format of the baseline table, = 0."),
(
"uint16",
"DefaultBaseline",
None,
None,
"Default baseline value for all glyphs. This value can be from 0 through 31.",
),
(
"uint16",
"Delta",
32,
0,
"These are the FUnit distance deltas from the font’s natural baseline to the other baselines used in the font. A total of 32 deltas must be assigned.",
),
],
),
(
"BaselineFormat1",
[
("uint16","Format",None,None,"Format of the baseline table, = 1."),
(
"uint16",
"DefaultBaseline",
None,
None,
"Default baseline value for all glyphs. This value can be from 0 through 31.",
),
(
"uint16",
"Delta",
32,
0,
"These are the FUnit distance deltas from the font’s natural baseline to the other baselines used in the font. A total of 32 deltas must be assigned.",
),
(
"AATLookup(uint16)",
"BaselineValues",
None,
None,
"Lookup table that maps glyphs to their baseline values.",
),
],
),
(
"BaselineFormat2",
[
("uint16","Format",None,None,"Format of the baseline table, = 1."),
(
"uint16",
"DefaultBaseline",
None,
None,
"Default baseline value for all glyphs. This value can be from 0 through 31.",
),
(
"GlyphID",
"StandardGlyph",
None,
None,
"Glyph index of the glyph in this font to be used to set the baseline values. This glyph must contain a set of control points (whose numbers are contained in the following field) that determines baseline distances.",
),
(
"uint16",
"ControlPoint",
32,
0,
"Array of 32 control point numbers, associated with the standard glyph. A value of 0xFFFF means there is no corresponding control point in the standard glyph.",
),
],
),
(
"BaselineFormat3",
[
("uint16","Format",None,None,"Format of the baseline table, = 1."),
(
"uint16",
"DefaultBaseline",
None,
None,
"Default baseline value for all glyphs. This value can be from 0 through 31.",
),
(
"GlyphID",
"StandardGlyph",
None,
None,
"Glyph index of the glyph in this font to be used to set the baseline values. This glyph must contain a set of control points (whose numbers are contained in the following field) that determines baseline distances.",
),
(
"uint16",
"ControlPoint",
32,
0,
"Array of 32 control point numbers, associated with the standard glyph. A value of 0xFFFF means there is no corresponding control point in the standard glyph.",
),
(
"AATLookup(uint16)",
"BaselineValues",
None,
None,
"Lookup table that maps glyphs to their baseline values.",
"A mapping from CIDs to the glyphs in the font, starting with CID 0. If a CID from the identified collection has no glyph in the font, 0xFFFF is used",
),
],
),
#
# feat
#
(
"feat",
[
(
"Version",
"Version",
None,
None,
"Version of the feat table-initially set to 0x00010000.",
"Format of the ligature caret table. Format 0 indicates division points are distances in font units, Format 1 indicates division points are indexes of control points.",
),
(
"AATLookup(LigCaretDistances)",
"Carets",
None,
None,
"Lookup table associating ligature glyphs with their caret positions, in font unit distances.",
),
],
),
(
"LigatureCaretsFormat1",
[
(
"uint16",
"Format",
None,
None,
"Format of the ligature caret table. Format 0 indicates division points are distances in font units, Format 1 indicates division points are indexes of control points.",
),
(
"AATLookup(LigCaretPoints)",
"Carets",
None,
None,
"Lookup table associating ligature glyphs with their caret positions, as control points.",
),
],
),
(
"LigCaretDistances",
[
("uint16","DivsionPointCount",None,None,"Number of division points."),
(
"int16",
"DivisionPoint",
"DivsionPointCount",
0,
"Distance in font units through which a subdivision is made orthogonally to the baseline.",
),
],
),
(
"LigCaretPoints",
[
("uint16","DivsionPointCount",None,None,"Number of division points."),
(
"int16",
"DivisionPoint",
"DivsionPointCount",
0,
"The number of the control point through which a subdivision is made orthogonally to the baseline.",
),
],
),
#
# mort
#
(
"mort",
[
("Version","Version",None,None,"Version of the mort table."),
(
"uint32",
"MorphChainCount",
None,
None,
"Number of metamorphosis chains.",
),
(
"MortChain",
"MorphChain",
"MorphChainCount",
0,
"Array of metamorphosis chains.",
),
],
),
(
"MortChain",
[
(
"Flags32",
"DefaultFlags",
None,
None,
"The default specification for subtables.",
),
(
"uint32",
"StructLength",
None,
None,
"Total byte count, including this header; must be a multiple of 4.",
),
(
"uint16",
"MorphFeatureCount",
None,
None,
"Number of metamorphosis feature entries.",
),
(
"uint16",
"MorphSubtableCount",
None,
None,
"The number of subtables in the chain.",
),
(
"struct",
"MorphFeature",
"MorphFeatureCount",
0,
"Array of metamorphosis features.",
),
(
"MortSubtable",
"MorphSubtable",
"MorphSubtableCount",
0,
"Array of metamorphosis subtables.",
),
],
),
(
"MortSubtable",
[
(
"uint16",
"StructLength",
None,
None,
"Total subtable length, including this header.",
),
(
"uint8",
"CoverageFlags",
None,
None,
"Most significant byte of coverage flags.",
),
("uint8","MorphType",None,None,"Subtable type."),
(
"Flags32",
"SubFeatureFlags",
None,
None,
"The 32-bit mask identifying which subtable this is (the subtable being executed if the AND of this value and the processed defaultFlags is nonzero).",
),
("SubStruct","SubStruct",None,None,"SubTable."),
],
),
#
# morx
#
(
"morx",
[
("uint16","Version",None,None,"Version of the morx table."),
("uint16","Reserved",None,None,"Reserved (set to zero)."),
(
"uint32",
"MorphChainCount",
None,
None,
"Number of extended metamorphosis chains.",
),
(
"MorxChain",
"MorphChain",
"MorphChainCount",
0,
"Array of extended metamorphosis chains.",
),
],
),
(
"MorxChain",
[
(
"Flags32",
"DefaultFlags",
None,
None,
"The default specification for subtables.",
),
(
"uint32",
"StructLength",
None,
None,
"Total byte count, including this header; must be a multiple of 4.",
),
(
"uint32",
"MorphFeatureCount",
None,
None,
"Number of feature subtable entries.",
),
(
"uint32",
"MorphSubtableCount",
None,
None,
"The number of subtables in the chain.",
),
(
"MorphFeature",
"MorphFeature",
"MorphFeatureCount",
0,
"Array of metamorphosis features.",
),
(
"MorxSubtable",
"MorphSubtable",
"MorphSubtableCount",
0,
"Array of extended metamorphosis subtables.",
),
],
),
(
"MorphFeature",
[
("uint16","FeatureType",None,None,"The type of feature."),
(
"uint16",
"FeatureSetting",
None,
None,
"The feature's setting (aka selector).",
),
(
"Flags32",
"EnableFlags",
None,
None,
"Flags for the settings that this feature and setting enables.",
),
(
"Flags32",
"DisableFlags",
None,
None,
"Complement of flags for the settings that this feature and setting disable.",
),
],
),
# Apple TrueType Reference Manual, chapter “The ‘morx’ table”,
"The 32-bit mask identifying which subtable this is (the subtable being executed if the AND of this value and the processed defaultFlags is nonzero).",
),
("SubStruct","SubStruct",None,None,"SubTable."),
],
),
(
"StateHeader",
[
(
"uint32",
"ClassCount",
None,
None,
"Number of classes, which is the number of 16-bit entry indices in a single line in the state array.",
),
(
"uint32",
"MorphClass",
None,
None,
"Offset from the start of this state table header to the start of the class table.",
),
(
"uint32",
"StateArrayOffset",
None,
None,
"Offset from the start of this state table header to the start of the state array.",
),
(
"uint32",
"EntryTableOffset",
None,
None,
"Offset from the start of this state table header to the start of the entry table.",
),
],
),
(
"RearrangementMorph",
[
(
"STXHeader(RearrangementMorphAction)",
"StateTable",
None,
None,
"Finite-state transducer table for indic rearrangement.",
),
],
),
(
"ContextualMorph",
[
(
"STXHeader(ContextualMorphAction)",
"StateTable",
None,
None,
"Finite-state transducer for contextual glyph substitution.",
),
],
),
(
"LigatureMorph",
[
(
"STXHeader(LigatureMorphAction)",
"StateTable",
None,
None,
"Finite-state transducer for ligature substitution.",
),
],
),
(
"NoncontextualMorph",
[
(
"AATLookup(GlyphID)",
"Substitution",
None,
None,
"The noncontextual glyph substitution table.",
),
],
),
(
"InsertionMorph",
[
(
"STXHeader(InsertionMorphAction)",
"StateTable",
None,
None,
"Finite-state transducer for glyph insertion.",
),
],
),
(
"MorphClass",
[
(
"uint16",
"FirstGlyph",
None,
None,
"Glyph index of the first glyph in the class table.",
),
# ('uint16', 'GlyphCount', None, None, 'Number of glyphs in class table.'),
# ('uint8', 'GlyphClass', 'GlyphCount', 0, 'The class codes (indexed by glyph index minus firstGlyph). Class codes range from 0 to the value of stateSize minus 1.'),
],
),
# If the 'morx' table version is 3 or greater, then the last subtable in the chain is followed by a subtableGlyphCoverageArray, as described below.
# ('Offset', 'MarkGlyphSetsDef', None, 'round(Version*0x10000) >= 0x00010002', 'Offset to the table of mark set definitions-from beginning of GDEF header (may be NULL)'),
#
# prop
#
(
"prop",
[
(
"Fixed",
"Version",
None,
None,
"Version number of the AAT glyphs property table. Version 1.0 is the initial table version. Version 2.0, which is recognized by macOS 8.5 and later, adds support for the “attaches on right” bit. Version 3.0, which gets recognized by macOS X and iOS, adds support for the additional directional properties defined in Unicode 3.0.",
"Default properties applied to a glyph. Since there is no lookup table in prop format 0, the default properties get applied to every glyph in the font.",
),
],
),
(
"GlyphPropertiesFormat1",
[
("uint16","Format",None,None,"Format, = 1."),
(
"uint16",
"DefaultProperties",
None,
None,
"Default properties applied to a glyph if that glyph is not present in the Properties lookup table.",
),
(
"AATLookup(uint16)",
"Properties",
None,
None,
"Lookup data associating glyphs with their properties.",
),
],
),
#
# opbd
#
(
"opbd",
[
(
"Version",
"Version",
None,
None,
"Version number of the optical bounds table (0x00010000 for the initial version).",