Search in sources :

Example 81 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 82 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)

Example 83 with Typeface

use of android.graphics.Typeface in project letterpress by Pixplicity.

the class FontAppCompatCheckedTextView 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 84 with Typeface

use of android.graphics.Typeface in project letterpress by Pixplicity.

the class FontAppCompatEditText 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 85 with Typeface

use of android.graphics.Typeface in project letterpress by Pixplicity.

the class FontAppCompatMultiAutoCompleteTextView 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)

Aggregations

Typeface (android.graphics.Typeface)266 Paint (android.graphics.Paint)57 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