android.graphics.Typeface

来源:互联网 发布:淘宝关键词数据库 编辑:程序博客网 时间:2024/06/03 07:48

android.graphics.Typeface  //图形,制图;字型

Class Overview


The Typeface class specifies the typeface and intrinsic style of a font. This is used in the paint, along with optionally Paint settings like textSize, textSkewX, textScaleX to specify how text appears when drawn (and measured).

Constants //常量


public static final int BOLD  //黑体

Added in API level 1

Constant Value: 1 (0x00000001)

public static final int BOLD_ITALIC  //黑体_斜体

Added in API level 1

Constant Value: 3 (0x00000003)

public static final int ITALIC //斜体

Added in API level 1

Constant Value: 2 (0x00000002)

public static final int NORMAL //正常,标准

Added in API level 1

Constant Value: 0 (0x00000000)

Fields


public static final Typeface DEFAULT

Added in API level 1

The default NORMAL typeface object

public static final Typeface DEFAULT_BOLD

Added in API level 1

The default BOLD typeface object. Note: this may be not actually be bold, depending on what fonts are installed. Call getStyle() to know for sure.

public static final Typeface MONOSPACE  //monospace:单一间隔,划一字距,等宽字体.

Added in API level 1

The NORMAL style of the default monospace typeface.

public static final Typeface SANS_SERIF //sans:无;serif:衬线

Added in API level 1

The NORMAL style of the default sans serif typeface.

public static final Typeface SERIF   //衬线

Added in API level 1

The NORMAL style of the default serif typeface