FontMetrics 字体属性类 java
2026/6/8 2:43:58 网站建设 项目流程

FontMetrics 字体属性

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

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

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

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

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

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询