WPF版OxyPlot的FontWeight

写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的用法意思是一样的, 基于同样的标准. 平时没太留意到这个细节.

发布了2 篇原创文章 · 获赞 0 · 访问量 106

猜你喜欢

转载自blog.csdn.net/oldwine2009/article/details/104028586
WPF