loadFile method

Future<BLFontFace> loadFile(
  1. String path, {
  2. String? familyName,
})

Implementation

Future<BLFontFace> loadFile(
  String path, {
  String? familyName,
}) async {
  final data = await File(path).readAsBytes();
  return loadBytes(data, familyName: familyName);
}