title: Font extensions does not work for JasperReports
body: <p>I am trying to add Tahoma font to jasper report in my web app. I use <a href="http://jasperreports.sourceforge.net/sample.reference/fonts/index.html#fontextensions" rel="noreferrer">font extension mechanism</a>.</p>
  
  <p>This exception was thrown: 
  net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'TahomaFont' is not available to the JVM. See the Javadoc for more details.</p>
  
  <p>Here is my font.xml file:</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;fontFamiles&gt;
    &lt;fontFamily name="TahomaFont"&gt;
      &lt;normal&gt;export/fonts/BTahoma.ttf&lt;/normal&gt;
      &lt;pdfEncoding&gt;Identity-H&lt;/pdfEncoding&gt;
      &lt;pdfEmbedded&gt;true&lt;/pdfEmbedded&gt;
    &lt;/fontFamily&gt;
  &lt;fontFamiles&gt;
  </code></pre>
  
  
  
  <p>and here is my jasperreports.properties file : </p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>net.sf.jasperreports.extension.registry.factory.simple.font.families=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory
  net.sf.jasperreports.extension.simple.font.families.TahomaFont=export/fonts/fonts.xml
  </code></pre>
  
  
  
  <p>Also  i have put Tahoma.ttf font file in my classpath. 
  Here is the style tag in jasper report:</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;style fontName="TahomaFont" name="tahoma"/&gt;
  </code></pre>
  
  
  
  <p>Please let me know where i am going wrong. Thanks in advance.</p>