readOtherFont static method

BitmapFont readOtherFont(
  1. String font,
  2. Uint8List imgBytes
)

For unzip files (font is the .fnt file and imgBytes is the .png file)

Implementation

static ui.BitmapFont readOtherFont(String font, Uint8List imgBytes) {
  final map = ui.decodeImage(imgBytes)!;
  return ui.readFont(font, map);
}