title: C# : Using an embedded font on a textbox
body: <p>I'm embedding a font in my windows forms application as embedded resource, and want to use it in a <code>TextBox</code>.</p>
  <p>The help of <code>AddMemoryFont()</code> says I have to set compatible text rendering to <code>true</code> in order to use GDI+, and so my font can then be used. But somehow it just won't display the right font.</p>
  <p>In Program.cs I explicitly state:</p>
  <pre><code>Application.SetCompatibleTextRenderingDefault(true);
  </code></pre>
  <p>So why is it not working? Anybody got a clue on how to set a custom font to a TextBox?</p>