Fonts

open class Fonts

Helper class to cache and resolve font families.

Functions

Link copied to clipboard
open fun addFontFamily(@NonNull fontFamily: String, @NonNull typeface: Typeface)
Adds a type face for a given font family.
Link copied to clipboard
open fun getFontFamily(@NonNull fontFamily: String): Typeface
Gets the type face for a given font family.
Link copied to clipboard
open fun isSystemFont(@NonNull fontFamily: String): Boolean
Link copied to clipboard
open fun shared(@NonNull context: Context): Fonts
Gets the shared fonts instance.