FontDownloader class
Downloads QFC4 font bundles from a CDN (GitHub Releases).
Fonts are organized in ZIP bundles of 5 pages each.
Properties
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
pageNumberis 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
centerPage(±radius). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FontDownloader
-
final