-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PaywallFont.AssetFont extends PaywallFont
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringpathprivate final FontWeightfontWeightprivate final IntegerfontStyle
-
Constructor Summary
Constructors Constructor Description PaywallFont.AssetFont(String path, FontWeight fontWeight, Integer fontStyle)
-
Method Summary
Modifier and Type Method Description final StringgetPath()Full path starting from the assets directory (i.e. final FontWeightgetFontWeight()The weight of the font. final IntegergetFontStyle()The style of the font, normal or italic. -
-
Method Detail
-
getPath
final String getPath()
Full path starting from the assets directory (i.e. dir/myfont.ttf for assets/dir/myfont.ttf).
-
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.
-
-
-
-