android.graphics.Typeface

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




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值