android.graphics
Class Typeface

java.lang.Object
  extended by android.graphics.Typeface

public class Typeface
extends Object


Field Summary
static int BOLD
           
static int BOLD_ITALIC
           
static Typeface DEFAULT
           
static Typeface DEFAULT_BOLD
           
static int ITALIC
           
static Typeface MONOSPACE
           
static int NORMAL
           
static Typeface SANS_SERIF
           
static Typeface SERIF
           
 
Method Summary
static Typeface create(String familyName, int style)
           
static Typeface create(Typeface family, int style)
           
static Typeface createFromAsset(AssetManager mgr, String path)
           
static Typeface createFromFile(File path)
           
static Typeface createFromFile(String path)
           
static Typeface defaultFromStyle(int style)
           
protected  void finalize()
           
 int getStyle()
           
 boolean isBold()
           
 boolean isItalic()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final Typeface DEFAULT

DEFAULT_BOLD

public static final Typeface DEFAULT_BOLD

SANS_SERIF

public static final Typeface SANS_SERIF

SERIF

public static final Typeface SERIF

MONOSPACE

public static final Typeface MONOSPACE

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

BOLD

public static final int BOLD
See Also:
Constant Field Values

ITALIC

public static final int ITALIC
See Also:
Constant Field Values

BOLD_ITALIC

public static final int BOLD_ITALIC
See Also:
Constant Field Values
Method Detail

getStyle

public int getStyle()

isBold

public final boolean isBold()

isItalic

public final boolean isItalic()

create

public static Typeface create(String familyName,
                              int style)

create

public static Typeface create(Typeface family,
                              int style)

defaultFromStyle

public static Typeface defaultFromStyle(int style)

createFromAsset

public static Typeface createFromAsset(AssetManager mgr,
                                       String path)

createFromFile

public static Typeface createFromFile(File path)

createFromFile

public static Typeface createFromFile(String path)

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2008-2012. All Rights Reserved.