loadFaces method

List<BLFontFace> loadFaces(
  1. Uint8List data
)

Loads every face from a .ttc, or the single face in another font file.

Implementation

List<BLFontFace> loadFaces(Uint8List data) {
  if (!_hasRecognizedHeader(data)) {
    throw const FormatException('Cabeçalho de fonte OpenType/CFF inválido.');
  }
  return BLFontFace.parseCollection(data);
}