title: How to use Fonts in PDFsharp in my Website?
body: <p>I am just using the Arial font on an Azure WebApplication web site but when I get to this line:</p>
  
  <pre><code>MainFont = new XFont("Arial", FontSize);
  </code></pre>
  
  <p>it throws an exception reading: <code>Font data could not retrieved.</code></p>
  
  <p>I would have thought Arial would have been installed on the server ... and I also tried changing it to Sans-Serif to match the default font of the Microsoft generated web-site ... but it still fails. </p>
  
  <p>I have also tried adding Arial.ttf to the project, but that hasn't worked.</p>