Build 1.0_r1(from source)

android.text.style
Class TypefaceSpan

java.lang.Object
  extended by android.text.style.CharacterStyle
      extended by android.text.style.MetricAffectingSpan
          extended by android.text.style.TypefaceSpan
All Implemented Interfaces:
UpdateLayout

public class TypefaceSpan
extends MetricAffectingSpan

Changes the typeface family of the text to which the span is attached.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.text.style.MetricAffectingSpan
MetricAffectingSpan.Passthrough
 
Constructor Summary
TypefaceSpan(String family)
           
 
Method Summary
 String getFamily()
          Returns the font family name.
 void updateDrawState(TextPaint ds)
           
 void updateMeasureState(TextPaint paint)
           
 
Methods inherited from class android.text.style.MetricAffectingSpan
getUnderlying
 
Methods inherited from class android.text.style.CharacterStyle
wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypefaceSpan

public TypefaceSpan(String family)
Parameters:
family - The font family for this typeface. Examples include "monospace", "serif", and "sans-serif".
Method Detail

getFamily

public String getFamily()
Returns the font family name.


updateDrawState

public void updateDrawState(TextPaint ds)
Specified by:
updateDrawState in class CharacterStyle

updateMeasureState

public void updateMeasureState(TextPaint paint)
Specified by:
updateMeasureState in class MetricAffectingSpan

Build 1.0_r1(from source)

Please submit a feedback, bug or feature