FontDownloader class

Downloads QFC4 font bundles from a CDN (GitHub Releases).

Fonts are organized in ZIP bundles of 5 pages each.

Properties

baseUrl String
Base URL for font downloads. Set this before using the downloader.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bundleNameForPage(int pageNumber) String
Returns the bundle name containing the given page number (1-based).
configure({required String baseUrl}) → void
Configure the download base URL.
downloadAll({void onProgress(double)?}) Future<void>
Download all fonts. Reports progress via onProgress (0.0 → 1.0).
ensureFontAvailable(int pageNumber) Future<Uint8List>
Ensures the font for pageNumber is available locally.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prefetch(int centerPage, {int radius = 5}) Future<void>
Prefetch fonts for pages around centerPageradius).
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FontDownloader
final