FontCache class
Manages the local font cache directory.
Fonts are stored at {documents}/qfc4_fonts/.
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
-
bundleFile(
String bundleName) → Future< File> - Returns the cached bundle ZIP file path.
-
cacheSize(
) → Future< int> - Total size of cached fonts in bytes.
-
clearCache(
) → Future< void> - Clears all cached fonts.
-
fontFileForPage(
int pageNumber) → Future< File> -
Returns the cached font file path for
pageNumber(1-based). -
getCacheDir(
) → Future< Directory> - Ensures the cache directory exists and returns it.
-
hasFontForPage(
int pageNumber) → Future< bool> -
Checks if a font file for
pageNumber(1-based) exists in cache. -
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