Content-Length: 276319 | pFad | http://github.com/re7gog/android_system_font/#start-of-content

09 GitHub - re7gog/android_system_font: Flutter plugin for getting the Android system font
Skip to content

re7gog/android_system_font

Repository files navigation

Flutter Android System Font

Flutter plugin for getting the Android system font. Fully works on Android 14+ by using latest API, on earlier versions it usually returns the standard font - Roboto. Gets the path of the font file by parsing system files.

Screenshot for proof

Example app on crDroid Android 14

crDroid

Getting Started

static Future<ByteData> readFileBytes(String path) async {
    var bytes = await File(path).readAsBytes();
    return ByteData.view(bytes.buffer);
}

var fontLoader = FontLoader('SystemFont');
fontFilePath = await AndroidSystemFont().getFilePath();
fontLoader.addFont(readFileBytes(fontFilePath));
fontLoader.load();

return MaterialApp(
      theme: ThemeData(
        fontFamily: "SystemFont"
      ), ...

About

Flutter plugin for getting the Android system font

Topics

Resources

License

Stars

Watchers

Forks









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/re7gog/android_system_font/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy