writeCachedFont function
Implementation
Future<void> writeCachedFont(String cacheKey, Uint8List bytes) async {
try {
final dir = await getTemporaryDirectory();
final file = File('${dir.path}/dataleon_font_$cacheKey');
await file.writeAsBytes(bytes);
} catch (_) {}
}