loadBytes method

BLFontFace loadBytes(
  1. Uint8List data, {
  2. String? familyName,
})

Implementation

BLFontFace loadBytes(
  Uint8List data, {
  String? familyName,
}) {
  if (!_hasRecognizedHeader(data)) {
    throw const FormatException('Cabeçalho de fonte OpenType/CFF inválido.');
  }
  return BLFontFace.parse(
    data,
    familyName: familyName,
  );
}