Package 

Class PaywallFont.AssetFont

    • Method Summary

      Modifier and Type Method Description
      final String getPath() Full path starting from the assets directory (i.e.
      final FontWeight getFontWeight() The weight of the font.
      final Integer getFontStyle() The style of the font, normal or italic.
      • Methods inherited from class com.revenuecat.purchases.ui.revenuecatui.fonts.PaywallFont

        describeContents, writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PaywallFont.AssetFont

        PaywallFont.AssetFont(String path, FontWeight fontWeight, Integer fontStyle)
    • 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.