gpt4 book ai didi

c# - Typography.Capitals 不适用于 Windows 7

转载 作者:太空狗 更新时间:2023-10-29 23:30:24 25 4
gpt4 key购买 nike

例如,在下面的标签中,我想使用 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),这两个系统都安装了。

Screenshot

最佳答案

如您所知,Typography.Capitals 支持由 OpenType 字体系列本身提供:https://msdn.microsoft.com/en-us/library/system.windows.documents.typography.capitals(v=vs.110).aspx

OpenType supports a number of styling formats for capitals, including small capitals, petite capitals, titling, and capital spacing. These styling formats allow you to control the appearance of capitals.

已为 Windows 8 添加了对 Segoe UI 的小型大写字母支持。Windows 7 版本的 Segoe UI 不支持小型大写字母。

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

The new Segoe UI also adds support for OpenType stylistic sets and ligatures which increases variation across the standard character set. New features include small caps, old-style and tabular (monospaced) numerals. In fact, the old variations of the characters above are included in the alternative style set (style set #20, in fact).

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

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com