-
public class FontAssetDelegateDelegate to handle the loading of fonts that are not packaged in the assets of your app or don't have the same file name.
-
-
Method Summary
Modifier and Type Method Description TypefacefetchFont(String fontFamily)Override this if you want to return a Typeface from a font family. TypefacefetchFont(String fontFamily, String fontStyle, String fontName)Override this if you want to return a Typeface from a font family and style. StringgetFontPath(String fontFamily)Override this if you want to specify the asset path for a given font family. StringgetFontPath(String fontFamily, String fontStyle, String fontName)Override this if you want to specify the asset path for a given font family and style. -
-
Method Detail
-
fetchFont
Typeface fetchFont(String fontFamily)
Override this if you want to return a Typeface from a font family.
-
fetchFont
Typeface fetchFont(String fontFamily, String fontStyle, String fontName)
Override this if you want to return a Typeface from a font family and style.
-
getFontPath
String getFontPath(String fontFamily)
Override this if you want to specify the asset path for a given font family.
-
getFontPath
String getFontPath(String fontFamily, String fontStyle, String fontName)
Override this if you want to specify the asset path for a given font family and style.
-
-
-
-