title: How to dynamically set font family in Jasper Report?
body: <p>I tried </p>
  
  <pre><code>            &lt;textElement markup="html"&gt;
                  &lt;font fontName="$P{contentFont}"/&gt;
              &lt;/textElement&gt;
  </code></pre>
  
  <p>and put <code>Arial Unicode MS</code> for <code>$P{contentFont}</code>
  but iReport throws:</p>
  
  <pre><code>Error filling print... Font '$P{contentFont}' is not available to the JVM. 
  See the Javadoc for more details. 
      net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '$P{contentFont}' 
      is not available to the JVM. See the Javadoc for more details.      
  </code></pre>
  
  <p>at net.sf.jasperreports.engine.fonts.FontUtil.checkAwtFont(FontUtil.java:347) </p>
  
  <p>So I guess  is no way to pre-define font family at run-time? Is there anyway to resolve the issue?</p>