https://github.com/rikulo/fontfaceobserver
A Dart wrapper of the Javascript library [fontfaceobserver](https://github.com/bramstein/fontfaceobserver)
https://github.com/rikulo/fontfaceobserver
Last synced: 6 months ago
JSON representation
A Dart wrapper of the Javascript library [fontfaceobserver](https://github.com/bramstein/fontfaceobserver)
- Host: GitHub
- URL: https://github.com/rikulo/fontfaceobserver
- Owner: rikulo
- Created: 2018-06-02T15:25:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T09:21:06.000Z (over 2 years ago)
- Last Synced: 2025-02-23T05:12:06.398Z (over 1 year ago)
- Language: Dart
- Size: 16.6 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fontfaceobserver
A Dart wrapper of Javascript library fontfaceobserver(v2.0.13)
https://github.com/bramstein/fontfaceobserver
BSD-style [license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).
## Usage
A simple usage example:
import 'package:fontfaceobserver/fontfaceobserver.dart';
main() {
final ffo = new FontFaceObserver("Font Awesome 5 Free", new FontOptions(weight: 'bold'));
ffo.load().then((ok) {
if (ok) {
print("Font is loaded.");
} else {
print("Time out! Font is not loaded.");
}
}
}