title: How to include external font in WPF application without installing it
body: <p>How to include external font in  WPF application without installing it</p>
  
  <p>I tried this code </p>
  
  <pre><code>  System.Drawing.Text.PrivateFontCollection privateFonts = new    System.Drawing.Text.PrivateFontCollection();
    privateFonts.AddFontFile("C:\\Documents and Settings\\somefont.ttf");
    System.Drawing.Font font = new Font(privateFonts.Families[0], 12);
    this.label1.Font = font;
  </code></pre>
  
  <p>It working correctly in Windows Form Application  but not in WPF.</p>