Sto provando ad aggiungere il carattere Tahoma al rapporto jasper nella mia app web. Io uso font extension mechanism.Le estensioni dei caratteri non funzionano con JasperReports
È stata generata questa eccezione: net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'TahomaFont' non è disponibile per JVM. Vedi il Javadoc per maggiori dettagli.
Ecco il mio file font.xml:
<fontFamiles>
<fontFamily name="TahomaFont">
<normal>export/fonts/BTahoma.ttf</normal>
<pdfEncoding>Identity-H</pdfEncoding>
<pdfEmbedded>true</pdfEmbedded>
</fontFamily>
<fontFamiles>
e qui è il mio file jasperreports.properties:
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
anche io ho messo Tahoma.ttf file di font nel mio classpath. Ecco il tag style nella relazione Jasper:
<style fontName="TahomaFont" name="tahoma"/>
Si prega di farmi sapere dove sto andando male. Grazie in anticipo.