tags:

views:

268

answers:

2

I am trying to enable kerning in my WPF TextBlock as in

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

However, setting Kerning to True or False does not seem to make any difference. What I am doing wrong?

A: 

Typography.Kerning defaults to true. You've not changed anything.

Steve Cooper
Indeed, I slightly changed my question.
A: 

I think that property only means anything in the context of a flowdocument. So you'd need to encapsulate your code in a flowdocument. Even then, I'm not sure it would work because according to the documentation, you can't set that property in xaml.

See this link

Unless I'm looking at the wrong property, in which case ignore this.

mdm20