-
Notifications
You must be signed in to change notification settings - Fork 228
Open
@allenzhangp
Description
在Sample14GetFontMetricsView中计算yOffset的用的是
yOffset = - (fontMetrics.ascent + fontMetrics.descent) / 2;
之前你在文章里写的ascent是负数,descent是正数,这两个相加是什么意思,计算baseline吗?不太懂。
如果是计算baseline应该只要ascent就可以了吧,而且canvas.drawText方法,里面的y就是baseline的值,搞不懂?!
Metadata
Metadata
Assignees
Labels
No labels