JasperReports Default Font

I have a JasperReport template (generated on the server) with a stylized text box (RTF). The content of this field is created by the User and therefore may contain all Fonts installed on the Clients PC (call it Font X). If I create a report on the server, there is no font X, so I want to replace all unknown fonts with font Y.

But all I get is the error that the font was not found. The function ( net.sf.jasperreports.awt.ignore.missing.iss ) does not need to disable font checking at all, because I want jrxml fonts to be marked.

Is there a way to set the default font (without changing the Jasper source)? (I already found some points in JRStyledText or JRTextUtil.)

+5
source share
1 answer

You can try using the property . net.sf.jasperreports.default.font.name

Or you can use default style.

<style name="Base" isDefault="true" ...>

For more information, you can read this article article , section Default Fonts and Inheritance.

UPDATED:

Quote from the JasperReports Ultimate Guide :

, . , , . , .

+6

All Articles