woff2 0.1.0
woff2: ^0.1.0 copied to clipboard
WOFF and WOFF2 font support for Flutter — decodes WOFF1/WOFF2 to SFNT (TTF/OTF) so Flutter's FontLoader can load them. Pure-Dart decoder, high-level Flutter FontLoader wrapper, and a CSS @font-face parser.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add woff2This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
woff2: ^0.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:woff2/woff2.dart';