fluent2FontFamily function

String fluent2FontFamily(
  1. String family
)

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

final loader = FontLoader(fluent2FontFamily('Selawik'))..addFont(bytes);
await loader.load();

Implementation

String fluent2FontFamily(String family) => fluent2FontPackage == null
    ? family
    : 'packages/$fluent2FontPackage/$family';