Font ownership
Font ownership is explicit, including when an application also calls its font "Inter":
const typography = TypographyTokens(
fontFamily: FontFamily.inter(), // bundled package font; the default
);
const appFont = FontFamily.application('MyFont');
const packageFont = FontFamily.package('MyFont', package: 'my_fonts');
const platformFont = FontFamily.system();Set theme.typography.copyWith(fontFamily: appFont) to change the shared font.
Use FontFamily.system() to clear packaged font ownership. Register application
and external package assets in their respective pubspecs. Roles such as body,
label, caption, h1–h6 and code are plain TextStyle values.
typography.fontFamily is the single font setting for all roles, including
headings and code. typography.resolve(typography.body) applies that family at
use time, preserving the role's size, weight and other attributes. Role styles
do not introduce separate font families. Ordinary text also inherits the shared
family through the app's theme scope; an explicit font on an individual Flutter
Text remains a local override.