LLNetworkFontFetcher class
The default fetcher.
For a Google family it asks the Google Fonts CSS endpoint — the v1
endpoint deliberately, because v2 (css2) answers a modern client with
WOFF2, which the Flutter engine cannot load. v1 with no User-Agent still
answers with TrueType, which it can.
- Implemented types
Constructors
- LLNetworkFontFetcher({required LLFetch fetch, Directory? cacheDirectory})
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
-
bytesFor(
LLResolvedFont font) → Future< Uint8List> -
override
-
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