【问题标题】:How do I enable kerning in WPF?如何在 WPF 中启用字距调整?
【发布时间】:2010-01-11 18:28:28
【问题描述】:

我正在尝试在我的 WPF TextBlock 中启用字距调整

<TextBlock FontFamily="Garamond" FontSize="120" Typography.Kerning="True">Table</TextBlock>
<TextBlock FontFamily="Garamond" FontSize="120" Typography.Kerning="False">Table</TextBlock>

但是,将 Kerning 设置为 True 或 False 似乎没有任何区别。 我做错了什么?

【问题讨论】:

标签: wpf typography kerning


【解决方案1】:

我认为该属性仅表示流文档上下文中的任何内容。因此,您需要将代码封装在流文档中。即使那样,我也不确定它是否会起作用,因为根据文档,您不能在 xaml 中设置该属性。

See this link

除非我正在查看错误的属性,在这种情况下忽略它。

【讨论】:

    【解决方案2】:

    Typography.Kerning 默认为真。你没有改变任何东西。

    【讨论】:

    • 确实,我稍微改变了我的问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多