fontMetricsInt.top:
指文字顶部到基线的距离,是负值。
fontMetricsInt.bottom:
指基线到文字底部的距离,是正值。
基线计算公式:
(fontMetricsInt.bottom - fontMetricsInt.top) / 2 - fontMetricsInt.bottom+getHeight()/2
fontMetricsInt.top:
指文字顶部到基线的距离,是负值。
fontMetricsInt.bottom:
指基线到文字底部的距离,是正值。
基线计算公式:
(fontMetricsInt.bottom - fontMetricsInt.top) / 2 - fontMetricsInt.bottom+getHeight()/2