OpenTypeFont class

An OpenType font. Contains either TrueType (glyf table) or OpenType (CFF2 table) outlines

Constructors

OpenTypeFont(OffsetTable offsetTable, Map<String, FontTable> tableMap)
OpenTypeFont.createFromGlyphs({required List<GenericGlyph> glyphList, String? fontName, String? description, Revision? revision, String? achVendID, bool? useOpenType, bool? usePostV2, bool? normalize})
Generates new OpenType font.
factory
OpenTypeFont.fromByteData(ByteData byteData)
factory

Properties

cff → CFF1Table
no setter
cff2 → CFF2Table
no setter
cmap → CharacterToGlyphTable
no setter
entryListSize int
no setter
familyName String
no setter
glyf → GlyphDataTable
no setter
gsub → GlyphSubstitutionTable
no setter
hashCode int
The hash code for this object.
no setterinherited
no setter
hhea → HorizontalHeaderTable
no setter
hmtx → HorizontalMetricsTable
no setter
isOpenType bool
no setter
loca → IndexToLocationTable
no setter
maxp → MaximumProfileTable
no setter
name → NamingTable
no setter
offsetTable → OffsetTable
final
os2 → OS2Table
no setter
post → PostScriptTable
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Calculates and returns size of the object (in bytes)
no setter
tableListSize int
no setter
tableMap Map<String, FontTable>
final

Methods

encodeToBinary(ByteData byteData) → void
Encodes the object to binary data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited