Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 593 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 593 Bytes

fontfaceobserver

A Dart wrapper of Javascript library fontfaceobserver(v2.0.13) https://github.com/bramstein/fontfaceobserver

BSD-style 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.");
    }
  }
}