MathVariantsParser
in package
FinalYes
Parser for the MathVariants sub-table of an OpenType MATH table.
MathVariants layout:
uint16 minConnectorOverlap
Offset16 vertGlyphCoverageOffset
Offset16 horizGlyphCoverageOffset
uint16 vertGlyphCount
uint16 horizGlyphCount
Offset16 vertGlyphConstructionOffsets[vertGlyphCount]
Offset16 horizGlyphConstructionOffsets[horizGlyphCount]
Each MathGlyphConstruction:
Offset16 glyphAssemblyOffset (0 if absent)
uint16 variantCount
MathGlyphVariantRecord variants[variantCount]:
uint16 variantGlyph
uint16 advanceMeasurement
Each MathGlyphAssembly:
MathValueRecord italicsCorrection
uint16 partCount
GlyphPartRecord parts[partCount]:
uint16 glyphID
uint16 startConnectorLength
uint16 endConnectorLength
uint16 fullAdvance
uint16 partFlags (bit 0 = extender)
Coverage tables follow standard OpenType format 1 or 2.
Table of Contents
Methods
Methods
parse()
public
parse(string $bytes) : MathVariants
Parameters
- $bytes : string