utils/payorc_sdk_fonts library

Constants

payorcSdkBundledCheckoutFontFamilies → const Set<String>
font_name values from checkout customization that have offline assets in this package.
payorcSdkCheckoutFontFallbackFamily → const String

Functions

payorcCheckoutDefaultTextStyle(String fontName) TextStyle
Base style for DefaultTextStyle.merge so Text widgets that only set size/color still pick up the face.
payorcMergeCheckoutFontTextTheme(TextTheme base, String fontName) TextTheme
Merges checkout font_name into base for Material ThemeData.textTheme.
payorcMergeHostFonts(TextTheme base, {required String? bodyFontName, required String? titleFontName, required String? checkoutFontName}) TextTheme
Applies bodyFontName to body/label styles and optionally titleFontName to display/headline/title styles. Falls back to checkoutFontName when a host override is empty.