Search in sources :

Example 96 with Typeface

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);
}
Also used : Typeface(android.graphics.Typeface)

Example 97 with 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);
}
Also used : Typeface(android.graphics.Typeface)

Example 98 with Typeface

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);
}
Also used : Typeface(android.graphics.Typeface)

Example 99 with Typeface

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);
}
Also used : Typeface(android.graphics.Typeface)

Example 100 with Typeface

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);
}
Also used : Typeface(android.graphics.Typeface)

Aggregations

Typeface (android.graphics.Typeface)263 Paint (android.graphics.Paint)56 TextPaint (android.text.TextPaint)40 TypedArray (android.content.res.TypedArray)34 TextView (android.widget.TextView)21 View (android.view.View)20 Canvas (android.graphics.Canvas)15 Bitmap (android.graphics.Bitmap)13 Context (android.content.Context)11 Resources (android.content.res.Resources)10 Test (org.junit.Test)8 ColorStateList (android.content.res.ColorStateList)7 Legend (com.github.mikephil.charting.components.Legend)7 File (java.io.File)7 Intent (android.content.Intent)6 Attributes (com.cengalabs.flatui.Attributes)6 XAxis (com.github.mikephil.charting.components.XAxis)6 YAxis (com.github.mikephil.charting.components.YAxis)6 ContentResolver (android.content.ContentResolver)5 Drawable (android.graphics.drawable.Drawable)5