public final class FontApplier extends Object
FontWidget implementations.| Modifier and Type | Method and Description |
|---|---|
static boolean |
applyFont(FontWidget fontWidget,
android.util.AttributeSet attrs)
Same as
applyFont(FontWidget, AttributeSet, int, int) with 0 as attribute for
defStyle and defStyleRes. |
static boolean |
applyFont(FontWidget fontWidget,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
Creates font from the specified attrs set and applies it to the given fontWidget.
|
static boolean |
applyFont(FontWidget fontWidget,
Font font)
Applies the specified font (its Typeface) to the given fontWidget.
|
static boolean |
applyFont(FontWidget fontWidget,
int style)
Creates font from the specified style and applies it to the given fontWidget.
|
static boolean |
applyFont(FontWidget fontWidget,
String fontPath)
Creates font at the specified fontPath and applies it to the given fontWidget.
|
public static boolean applyFont(FontWidget fontWidget, android.util.AttributeSet attrs)
applyFont(FontWidget, AttributeSet, int, int) with 0 as attribute for
defStyle and defStyleRes.public static boolean applyFont(FontWidget fontWidget, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)
True if font was applied, false otherwise.Font.create(Context, AttributeSet, int, int)public static boolean applyFont(FontWidget fontWidget, int style)
True if font was applied, false otherwise.Font.create(Context, int)public static boolean applyFont(FontWidget fontWidget, String fontPath)
True if font was applied, false otherwise.Font.create(String)public static boolean applyFont(FontWidget fontWidget, Font font)
font - Font of which type face to apply to the widget.True if font was applied, false otherwise.