例如,在下面的标签中,我想使用SmallCaps,但它们仅在Windows 8和更高版本上显示。在Windows 7上,只有普通的字母。

<Label x:Name="servername" Typography.Capitals="SmallCaps" Content="Server xy" VerticalAlignment="Bottom" FontSize="15" Margin="10,0,10,31" Padding="5,0"  FontWeight="Light" Height="19" HorizontalAlignment="Left" SizeChanged="servername_SizeChanged"/>

我使用的是.NET Framework 4.5,字体为Segoe UI Medium(以及其他一些标签Segoe UI Light),该字体已安装在两个系统上。

最佳答案

您可能知道,OpenType字体家族本身提供了Typography.Capitals支持:https://msdn.microsoft.com/en-us/library/system.windows.documents.typography.capitals(v=vs.110).aspx



Windows 8添加了对Segoe UI的小写字母支持。Windows7版本的Segoe UI不支持小写字母。

https://littlenewthings.wordpress.com/2013/08/07/segoe-ui-gets-a-facelift-in-windows-8/



我不确定打包Segoe UI的更新版本以在您自己的WPF应用程序中使用的可能性和合法性。

关于c# - Typography.Capital在Windows 7上不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31082069/

10-14 15:14
查看更多