ledgerFontFamily function

String ledgerFontFamily(
  1. String family
)

family under the name Flutter registers it by: PlexMono when the app bundles it, packages/ledger_ui/PlexMono from the package. A test that loads the faces itself loads them under this name.

final loader = FontLoader(ledgerFontFamily('PlexMono'))..addFont(bytes);
await loader.load();

Implementation

String ledgerFontFamily(String family) =>
    ledgerFontPackage == null ? family : 'packages/$ledgerFontPackage/$family';