| 限定符和类型 | 字段 | 说明 |
|---|---|---|
float |
ascent |
Indicates the font ascent, that is, the distance from the font's baseline to the top of a character.
|
float |
bottom |
Indicates the maximum descent of the font.
|
float |
descent |
Indicates the font ascent, that is, the distance from the font's baseline to the bottom of a character.
|
float |
leading |
Indicates the leading, that is, the space to be reserved between the descent of a line and
the ascent of the next line.
|
float |
top |
Indicates the maximum ascent of the font.
|
| 构造器 | 说明 |
|---|---|
FontMetrics(float top,
float ascent,
float descent,
float bottom,
float leading) |
A constructor used to create a
FontMetrics instance based on the specified maximum ascent
and descent, font ascent and descent, and leading. |
public float ascent
public float bottom
public float descent
public float leading
public float top
public FontMetrics(float top,
float ascent,
float descent,
float bottom,
float leading)
FontMetrics instance based on the specified maximum ascent
and descent, font ascent and descent, and leading.top - Indicates the maximum ascent of the font described by this FontMetrics object.ascent - Indicates the distance from the font's baseline to the top of a character.descent - Indicates the distance from the font's baseline to the bottom of a character.bottom - Indicates the maximum descent of the font described by this FontMetrics object.leading - Indicates the space to be reserved between the descent of a line and the ascent of
the next line.