Is there a way to adjust kerning in a single TextBlock? RRS feed

  • Question

  • I would like to adjust kerning in the text that I display on the screen. Is going with a separate TextBlock per letter or converting to paths the only way?

    Filip Skakun

    Saturday, March 3, 2012 12:17 AM


All replies

  • The TextBlock doesn't support per-character kerning adjustments. There is a CharacterSpacing property but it affects spacing between all characters equally. Also take a look a the Typography class and its attached properties.


    Monday, March 5, 2012 6:27 PM
  • Thanks, somehow I read the "uniform spacing" in the documentation as if it was forcing the font to become monospaced, while it basically means that it controls kerning in a uniform way for all characters. I also found that CharacterSpacing can be defined on a Run, so if you have a Run per character - you can control kerning at character level too (although the syntax becomes a bit verbose).

    Filip Skakun

    Thursday, March 8, 2012 9:27 PM