studioRegisteredFamily function

String studioRegisteredFamily(
  1. String family
)

family under the name Flutter registers it by: Barlow when the app bundles it, packages/studio_ui/Barlow from the package. A test that loads the face itself loads it under this name.

final loader = FontLoader(studioRegisteredFamily(studioFontFamily));

Implementation

String studioRegisteredFamily(String family) =>
    studioFontPackage == null ? family : 'packages/$studioFontPackage/$family';