title: JasperReports does not maintain fonts when exports in pdf
body: <p>My Java application generates a pdf file filling a JasperReports's report, but when i open the pdf file the fonts it's allways "Arial", in report is set to "DejaVu Sans". </p>
  
  <p>When I use the JasperReports functions to export to pdf file everything works good (after that i've imported the .ttf file of DejaVu Sans). The problem persists only when I use the Java application.</p>
  
  <p>Here is the start of one of my subreports.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="sub_21" pageWidth="515" pageHeight="842" columnWidth="515" leftMargin="0" rightMargin="0" topMargin="30" bottomMargin="0" uuid="34ff3034-41c3-4268-b500-7252cbe01a14"&gt;
      &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/&gt;
      &lt;parameter name="acp" class="acp.pdfengine.entities.PdfData"/&gt;
      &lt;detail&gt;
          &lt;band height="376" splitType="Stretch"&gt;
              &lt;textField isBlankWhenNull="true"&gt;
                  &lt;reportElement positionType="Float" x="0" y="0" width="181" height="21" isRemoveLineWhenBlank="true" uuid="7b1fe94a-28dd-42d1-b6db-ee2dcc2d7020"/&gt;
                  &lt;textElement&gt;
                      &lt;font fontName="DejaVu Sans" size="12" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$P{acp}.getPdfWords().getRESULT_title()]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
  </code></pre>
  
  <p>And here is the piece of java code that fills the reports and creates the pdf:</p>
  
  <pre><code>filledReport = JasperFillManager.fillReport(report, params, dataSource);
  JasperExportManager.exportReportToPdfFile(filledReport, data.getPdfInfo().getResourcesPath() + data.getPdfInfo().getFileName());
  </code></pre>
  
  <p>Here is my jasperreports-fonts.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;fontFamilies&gt;
      &lt;fontFamily name="DejaVu Sans" visible="true"&gt;
        &lt;normal&gt;net/sf/jasperreports/fonts/dejavu/DejaVuSans.ttf&lt;/normal&gt; 
        &lt;bold&gt;net/sf/jasperreports/fonts/dejavu/DejaVuSans-Bold.ttf&lt;/bold&gt; 
        &lt;italic&gt;net/sf/jasperreports/fonts/dejavu/DejaVuSans-Oblique.ttf&lt;/italic&gt; 
        &lt;boldItalic&gt;net/sf/jasperreports/fonts/dejavu/DejaVuSans-BoldOblique.ttf&lt;/boldItalic&gt; 
        &lt;pdfEncoding&gt;Identity-H&lt;/pdfEncoding&gt; 
        &lt;pdfEmbedded&gt;true&lt;/pdfEmbedded&gt; 
        &lt;exportFonts&gt;
        &lt;export key="net.sf.jasperreports.html"&gt;'DejaVu Sans', Arial, Helvetica, sans-serif&lt;/export&gt; 
        &lt;export key="net.sf.jasperreports.xhtml"&gt;'DejaVu Sans', Arial, Helvetica, sans-serif&lt;/export&gt; 
        &lt;/exportFonts&gt;
      &lt;/fontFamily&gt;
  
      &lt;fontFamily name="Pictonic" visible="false"&gt;
          &lt;normal&gt;
              &lt;ttf&gt;net/sf/jasperreports/fonts/pictonic/pictonic.ttf&lt;/ttf&gt;
              &lt;svg&gt;net/sf/jasperreports/fonts/pictonic/pictonic.svg&lt;/svg&gt;
              &lt;eot&gt;net/sf/jasperreports/fonts/pictonic/pictonic.eot&lt;/eot&gt;
              &lt;woff&gt;net/sf/jasperreports/fonts/pictonic/pictonic.woff&lt;/woff&gt;
          &lt;/normal&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>Does anyone have the same problem?</p>