loadExportFont function
Reads the bundled font's bytes from bundle (rootBundle when null).
Implementation
Future<Uint8List> loadExportFont([AssetBundle? bundle]) async {
final data = await (bundle ?? rootBundle).load(kExportFontAsset);
return data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes);
}