Skip to content

Commit b086dfc

Browse files
committed
Update
1 parent 7b01750 commit b086dfc

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎CustomView/Advance/[7]DrawText.md‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,15 @@ FontMetrics 是 Paint 的一个内部类,根据名字我们可以大致知道
158158
> 简单来说,FontMetrics包含了当前文本相关的各项参数,你可以通过 Paint中 _getFontMetrics()_ 这个方法来获取到这个类。
159159
(另外,原文中还特地强调了一下关于坐标正负的问题。)
160160

161-
##### FontMetrics包含了以下几项参数:
162-
163-
161+
##### FontMetrics包含了以下几个数值:
162+
163+
名称 | 正负| 释义
164+
--------|:---:|--------------------------------------------------------
165+
top | - | 在指定字形和大小的情况下,字符最高点与基线之间的距离
166+
ascent | - | 单个字符的最高点与基线距离的推荐值(不包括字母上面的符号)
167+
descent | + | 单个字符的最低点与基线距离的推荐值
168+
bottom | + | 在指定字形和大小的情况下,字符最低点与基线之间的距离
169+
leading | + | 行间距,当前行bottom与下一行top之间的距离的推荐值
164170

165171

166172

0 commit comments

Comments
 (0)