comicFontFamily function

String comicFontFamily(
  1. String family
)

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

final loader = FontLoader(comicFontFamily('ShantellSans'))..addFont(bytes);
await loader.load();

Implementation

String comicFontFamily(String family) =>
    comicFontPackage == null ? family : 'packages/$comicFontPackage/$family';