title: JasperReports - font extensions does not work - can't find font while exporting to PDF
body: <p>i am trying to add Tahoma font to my report in my web app. I use font extension mechanism (via iReport I've exported extension jar and put it in my web app lib directory). My font.xml file looks like this:</p>
  
  <pre><code>&lt;fontFamily name="Tahoma"&gt;
     &lt;normal&gt;&lt;![CDATA[fonts/tahoma.ttf]]&gt;&lt;/normal&gt;
     &lt;bold&gt;&lt;![CDATA[fonts/tahomabd.ttf]]&gt;&lt;/bold&gt;
     &lt;pdfEncoding&gt;&lt;![CDATA[Cp1250]]&gt;&lt;/pdfEncoding&gt;
     &lt;pdfEmbedded&gt;&lt;![CDATA[true]]&gt;&lt;/pdfEmbedded&gt;
  &lt;/fontFamily&gt;
  </code></pre>
  
  <p>and my style:</p>
  
  <pre><code>&lt;style name="TAHOMA_FONT" fontName="Tahoma" pdfFontName="Tahoma" /&gt;
  </code></pre>
  
  <p>The problem is that when I try to generate PDF the following error occurs:</p>
  
  <blockquote>
    <p>Could not load the following font: pdfFontName: Tahoma pdfEncoding: Cp1250 isPdfEmbedded: true</p>
  </blockquote>
  
  <p>This problem does not occur in iReports. Additionally when I change style to the following one the problem does not occur:</p>
  
  <pre><code>&lt;style name="TAHOMA_FONT" fontName="Tahoma" pdfFontName="fonts/tahoma.ttf" pdfEncoding="Cp1250" isPdfEmbedded="true" /&gt;
  </code></pre>
  
  <p>When I put breakpoint in net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory class I can see that Tahoma family is being read.</p>
  
  <p>My jasperreports version is 3.7.4.</p>
  
  <p>Any suggestions?</p>