写Html的时候Font的Weight是有数值的: 100, 900什么的. 但是在WPF里FontWeight被定义到一个类型里是分档的, 然后在OxyPlot绘图里比如TitleFontWeight用的又是数值. 具体是怎么回事呢.
查了一下,是这样的: 链接
The FontWeights values correspond to the usWeightClass definition in the OpenType specification. The usWeightClass represents an integer value between 1 and 999. Lower values indicate lighter weights; higher values indicate heavier weights.
例如:

等等,一直到950, 分成很多档, 和Html的用法意思是一样的, 基于同样的标准. 平时没太留意到这个细节.
探讨了WPF中FontWeight属性与HTML中font-weight属性的区别,解释了WPF的FontWeight如何映射到OpenType规范中的usWeightClass,以及这与HTML中使用的数值权重之间的联系。
623

被折叠的 条评论
为什么被折叠?



