-
- All Implemented Interfaces:
-
com.revenuecat.purchases.ui.revenuecatui.fonts.FontProvider
public final class CustomFontProvider implements FontProvider
Class that allows to provide a font family for all text styles.
-
-
Constructor Summary
Constructors Constructor Description CustomFontProvider(FontFamily fontFamily)
-
Method Summary
Modifier and Type Method Description FontFamilygetFont(TypographyType type)Returns the font to be used for the given TypographyType. -
-
Method Detail
-
getFont
FontFamily getFont(TypographyType type)
Returns the font to be used for the given TypographyType. If null is returned, the default font will be used.
- Parameters:
type- the TypographyType for which the font is being requested.
-
-
-
-