use of android.graphics.Typeface in project letterpress by Pixplicity.
the class FontUtil method applyTypeface.
public static void applyTypeface(@NonNull TextView view, @NonNull String fontName) {
final Typeface typeface = getTypeface(view.getContext(), fontName);
view.setTypeface(typeface);
}
use of android.graphics.Typeface in project letterpress by Pixplicity.
the class FontAppCompatAutoCompleteTextView method setCustomTypeface.
private void setCustomTypeface(AttributeSet attrs, int defStyle) {
final Typeface tf = FontUtil.getTypeface(getContext(), attrs, defStyle);
setCustomTypeface(tf);
}
use of android.graphics.Typeface in project letterpress by Pixplicity.
the class FontAppCompatButton method setCustomTypeface.
private void setCustomTypeface(AttributeSet attrs, int defStyle) {
final Typeface tf = FontUtil.getTypeface(getContext(), attrs, defStyle);
setCustomTypeface(tf);
}
use of android.graphics.Typeface in project letterpress by Pixplicity.
the class FontAppCompatCheckBox method setCustomTypeface.
private void setCustomTypeface(AttributeSet attrs, int defStyle) {
final Typeface tf = FontUtil.getTypeface(getContext(), attrs, defStyle);
setCustomTypeface(tf);
}
use of android.graphics.Typeface in project letterpress by Pixplicity.
the class FontAppCompatCheckedTextView method setCustomTypeface.
public void setCustomTypeface(String font) {
final Typeface tf = FontUtil.getTypeface(getContext(), font);
setCustomTypeface(tf);
}
Aggregations