x-height是一个字体度量,它是根据em-height给出的,
在CSS中这两个单元是可用的,我对ex单元感兴趣。还有一个em单位,这样就给出了ex单位。
下表显示了一些指标,可通过以下站点获得:
http://www.cs.tut.fi/~jkorpela/x-height.html
Arial 0.519
Arial Unicode MS 0.518
Calibri 0.466
Cambria 0.466
Candara 0.463
Code2000 0.444
Comics Sans MS 0.532
Courier 0.425
Courier New 0.423
Garamond 0.384
Georgia 0.481
Helvetica 0.523
Tahoma 0.545
Times New Roman 0.448
Trebuchet MS 0.523
Verdana 0.545
我想知道给定字体对象在C#中的x高度。我的身高是这样的:
TextRenderer.MeasureText("M", font).Height
使用WinAPI是可以接受的。不管怎样。。。浏览器可以做到这一点。他们知道如何计算汇率,我也想知道如何得到这个值。请帮忙!!
帮助转换的相关问题
字体到字体:
How to convert System.Drawing.font to
System.Windows.Media.Fonts or
TypeFace