public class TypefaceSpan
extends android.text.style.MetricAffectingSpan
Spannable with a custom Typeface.
Created by drew@52inc.co on 6/26/14.| Constructor and Description |
|---|
TypefaceSpan(android.content.Context context,
Face typeface)
Load the
Typeface and apply to a Spannable. |
| Modifier and Type | Method and Description |
|---|---|
void |
updateDrawState(android.text.TextPaint tp) |
void |
updateMeasureState(android.text.TextPaint p) |
public TypefaceSpan(android.content.Context context,
Face typeface)
Typeface and apply to a Spannable.public void updateMeasureState(android.text.TextPaint p)
updateMeasureState in class android.text.style.MetricAffectingSpanpublic void updateDrawState(android.text.TextPaint tp)
updateDrawState in class android.text.style.CharacterStyle