Package com.airbnb.lottie
Class FontAssetDelegate
- java.lang.Object
-
- com.airbnb.lottie.FontAssetDelegate
-
public class FontAssetDelegate extends java.lang.ObjectDelegate to handle the loading of fonts that are not packaged in the assets of your app or don't have the same file name.
-
-
Constructor Summary
Constructors Constructor Description FontAssetDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypefacefetchFont(java.lang.String fontFamily)Override this if you want to return a Typeface from a font family.java.lang.StringgetFontPath(java.lang.String fontFamily)Override this if you want to specify the asset path for a given font family.
-
-
-
Method Detail
-
fetchFont
public Typeface fetchFont(java.lang.String fontFamily)
Override this if you want to return a Typeface from a font family.
-
getFontPath
public java.lang.String getFontPath(java.lang.String fontFamily)
Override this if you want to specify the asset path for a given font family.
-
-