title: How can I specify letter spacing or kerning, in a WPF TextBox?
body: <p>I'd like to modify the spacing between characters in a WPF TextBox.<br>
  Something like the <code>letter-spacing: 5px</code> thing that is available in CSS.<br>
  I think it is possible in XAML; what's the simplest way? </p>
  
  <p>I found the "<a href="http://msdn.microsoft.com/en-us/library/ms748985.aspx" rel="noreferrer">Introduction to the GlyphRun Object and Glyphs Element</a>" document, and found it to be exceedingly unhelpful. </p>
  
  <p>This is a code example from that page: </p>
  
  <pre><code>&lt;!-- "Hello World!" with explicit character widths for proportional font --&gt;
  &lt;Glyphs 
     FontUri             = "C:\WINDOWS\Fonts\ARIAL.TTF"
     FontRenderingEmSize = "36"
     UnicodeString       = "Hello World!"
     Indices             = ",80;,80;,80;,80;,80;,80;,80;,80;,80;,80;,80"
     Fill                = "Maroon"
     OriginX             = "50"
     OriginY             = "225"
  /&gt;
  </code></pre>
  
  <p>The same documentation page gives this "explanation" for what the <code>Indices</code> property does: </p>
  
  <p><img src="https://i.stack.imgur.com/f96zn.png" alt="enter image description here"></p>
  
  <p>I have no idea what any of that means. I'm also not sure that Indices is the right thing - the comment in the code speaks of "character widths" which I don't care about. I want to adjust the width <em>between</em> characters.</p>
  
  <p>Also, there is no example for how to apply a <code>Glyphs</code> element to a TextBox.  When I tried it, my WPF test app just crashed.</p>
  
  <hr>
  
  <p>What I want to do is slightly increase the empty space that appears between drawn characters within a WPF TextBox.  The text will vary in length and content.  Do I have to modify the <code>Indicies</code> property every time there is a new character? Is there a way to say "make it 20% more space than usual, for every character". </p>
  
  <p>Can anybody help me? </p>