BLFontLoader class

Carregador nativo de fontes OpenType, TrueType, CFF e coleções TTC.

Constructors

BLFontLoader()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

discoverSystemFontFiles({List<String>? directories}) → Future<List<String>>
Enumera arquivos OpenType acessíveis sem seguir links simbólicos.
loadBytes(Uint8List data, {String? familyName}) → BLFontFace
loadFaces(Uint8List data) → List<BLFontFace>
Loads every face from a .ttc, or the single face in another font file.
loadFile(String path, {String? familyName}) → Future<BLFontFace>
loadFileFaces(String path) → Future<List<BLFontFace>>
loadSystemFont(BLFontCollection collection, BLFontQuery query, {List<String>? directories, int concurrency = 4, void onError(String path, Object error)?}) → Future<BLFontFace?>
Carrega arquivos do catálogo nativo até encontrar uma face para query.
loadSystemFonts(BLFontCollection collection, {List<String>? directories, int? maxFonts, int concurrency = 8, void onError(String path, Object error)?}) → Future<int>
Descobre, valida e adiciona fontes nativas a collection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
systemFontDirectories() → List<String>
Diretórios usuais de fontes da plataforma atual.
toString() → String
A string representation of this object.
inherited

Operators

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