Parser class
Constructors
Parser (dynamic data , dynamic offset )
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseByte ()
→ dynamic
parseByteList (int count )
→ dynamic
parseCard16 ()
→ dynamic
parseCard8 ()
→ dynamic
parseChar ()
→ dynamic
parseClassDef ()
→ dynamic
parseCoverage ()
→ dynamic
parseF2Dot14 ()
→ dynamic
parseFeatureList ()
→ dynamic
parseFeatureVariationsList ()
→ dynamic
parseFixed ()
→ dynamic
parseList (dynamic count , dynamic itemCallback )
→ dynamic
Parse a list of items.
Record count is optional, if omitted it is read from the stream.
itemCallback is one of the Parser methods.
parseList32 (dynamic count , dynamic itemCallback )
→ dynamic
parseListOfLists (dynamic itemCallback )
→ dynamic
Parse a list of offsets to lists of 16-bit integers,
or a list of offsets to lists of offsets to any kind of items.
If itemCallback is not provided, a list of list of UShort is assumed.
If provided, itemCallback is called on each item and must parse the item.
See examples in tables/gsub.js
parseLongDateTime ()
→ dynamic
parseLookupList (dynamic lookupTableParsers )
→ dynamic
parseOffset16 ()
→ dynamic
parseOffset16List (dynamic count )
→ dynamic
// Parsing lists and records ///////////////////////////////
parseOffset32 ()
→ dynamic
parsePointer (dynamic description )
→ dynamic
parsePointer32 (dynamic description )
→ dynamic
parseRecordList (dynamic count , dynamic recordDescription )
→ dynamic
Parse a list of records.
Record count is optional, if omitted it is read from the stream.
Example of recordDescription: { sequenceIndex: Parser.uShort, lookupListIndex: Parser.uShort }
parseRecordList32 (dynamic count , dynamic recordDescription )
→ dynamic
parseScriptList ()
→ dynamic
// Complex tables parsing //////////////////////////////////
parseShort ()
→ dynamic
parseShortList (int count )
→ dynamic
parseSID ()
→ dynamic
parseString (int length )
→ dynamic
parseStruct (dynamic description )
→ dynamic
parseTag ()
→ dynamic
parseULong ()
→ dynamic
parseULongList (int ? count )
→ dynamic
parseUShort ()
→ dynamic
parseUShortList (int ? count )
→ dynamic
parseValueRecord (dynamic valueFormat )
→ Map <String , dynamic > ?
Parse a GPOS valueRecord
https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record
valueFormat is optional, if omitted it is read from the stream.
parseValueRecordList ()
→ dynamic
Parse a list of GPOS valueRecords
https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record
valueFormat and valueCount are read from the stream.
parseVersion (dynamic minorBase )
→ dynamic
skip (dynamic type , int ? amount )
→ dynamic
toString ()
→ String
A string representation of this object.
inherited