-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PaywallFont.GoogleFont extends PaywallFont
Represents a downloadable Google Font.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringfontNameprivate final GoogleFontProviderfontProviderprivate final FontWeightfontWeightprivate final IntegerfontStyle
-
Constructor Summary
Constructors Constructor Description PaywallFont.GoogleFont(String fontName, GoogleFontProvider fontProvider, FontWeight fontWeight, Integer fontStyle)
-
Method Summary
Modifier and Type Method Description final StringgetFontName()Name of the Google font you want to use. final GoogleFontProvidergetFontProvider()Provider of the Google font. final FontWeightgetFontWeight()The weight of the font. final IntegergetFontStyle()The style of the font, normal or italic. -
-
Constructor Detail
-
PaywallFont.GoogleFont
PaywallFont.GoogleFont(String fontName, GoogleFontProvider fontProvider, FontWeight fontWeight, Integer fontStyle)
-
-
Method Detail
-
getFontName
final String getFontName()
Name of the Google font you want to use.
-
getFontProvider
final GoogleFontProvider getFontProvider()
Provider of the Google font.
-
getFontWeight
final FontWeight getFontWeight()
The weight of the font. The system uses this to match a font to a font request.
-
getFontStyle
final Integer getFontStyle()
The style of the font, normal or italic. The system uses this to match a font to a font request. We use int instead of FontStyle because FontStyle is not compatible with Java.
-
-
-
-