title: JasperReports 5.6: Could not load the following font
body: <p>I am facing the problem, that <em>JasperReports</em> still cannot find the Arial font. </p>
  
  <p>I created a simple Maven Project with following structure and included it to my main application. So the main application contains the installed JAR in classpath:</p>
  
  <pre><code>- jasperreports_extension.properties
  - fonts
    |-&gt; arial
      |-&gt; ariali.ttf
      |-&gt; arialbi.ttf
      |-&gt; arialbd.ttf
      |-&gt; arial.ttf
    |-&gt; fonts.xml
  </code></pre>
  
  <p>But I still see following Exception while exporting report to PDF.</p>
  
  <pre><code>net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font : 
  pdfFontName   : Arial
  pdfEncoding   : Identity-H
  isPdfEmbedded : true
  </code></pre>
  
  <p><strong>jasperreports_extension.properties</strong></p>
  
  <pre><code>net.sf.jasperreports.extension.registry.factory.simple.font.families=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory
  net.sf.jasperreports.extension.simple.font.families.arial=fonts/fonts.xml
  </code></pre>
  
  <p><strong>fonts.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;fontFamilies&gt;
      &lt;fontFamily name="Arial"&gt;
          &lt;normal&gt;fonts/arial/arial.ttf&lt;/normal&gt;
          &lt;bold&gt;fonts/arial/arialbd.ttf&lt;/bold&gt;
          &lt;italic&gt;fonts/arial/ariali.ttf&lt;/italic&gt;
          &lt;boldItalic&gt;fonts/arial/arialbi.ttf&lt;/boldItalic&gt;
          &lt;pdfEncoding&gt;Identity-H&lt;/pdfEncoding&gt;
          &lt;pdfEmbedded&gt;true&lt;/pdfEmbedded&gt;
      &lt;/fontFamily&gt;
  &lt;/fontFamilies&gt;
  </code></pre>
  
  <p><strong>Template</strong></p>
  
  <pre><code>&lt;font fontName="Arial" size="8" pdfFontName="Arial" pdfEncoding="Identity-H" isPdfEmbedded="true"/&gt;
  </code></pre>