Android
android.text.style
public class

android.text.style.TypefaceSpan

java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan UpdateLayout
android.text.style.TypefaceSpan

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

Summary

Public Constructors

            TypefaceSpan(String family)

Public Methods

          String  getFamily()
Returns the font family name.
          void  updateDrawState(TextPaint ds)
          void  updateMeasureState(TextPaint paint)
Methods inherited from class android.text.style.MetricAffectingSpan
Methods inherited from class android.text.style.CharacterStyle
Methods inherited from class java.lang.Object

Details

Public Constructors

public TypefaceSpan(String family)

Parameters

family The font family for this typeface. Examples include "monospace", "serif", and "sans-serif".

Public Methods

public String getFamily()

Returns the font family name.

public void updateDrawState(TextPaint ds)

public void updateMeasureState(TextPaint paint)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48