FontMetrics  字体属性

1.     GetAscent()   //ascent表示字体从基线到顶端的距离

2.     getDescent()  //Descent表示字体从基线到下降字符底端的距离

3.     getLeading()     //Leading 表示本文行之间的距离

4.     getheight()    //字体高度  ascent+Descent+ Leading

5.     StringWidth(String)   //字符串宽度

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐