readOtherFont static method
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);
}