PMFontReader class

This class contains all the code required to read the contents of a .ttf file.

Constructors

PMFontReader()

Properties

font PMFont
read / write
fontData ↔ dynamic
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
parseTTF(dynamic path) Future<PMFont>
Use this method to convert a .ttf file into a PMFont object. It expects you to pass the path of the .ttf file as its only argument.
parseTTFAsset(ByteData data) PMFont
Use this method to convert a .ttf file you have in your assets folder into a PMFont object.
toString() String
A string representation of this object.
inherited

Operators

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