Use custom fonts when creating pdf using iReport

You should use the Font Extensions mechanism.

After creating the font and exporting it as a jar file you should add generated jar file to the application classpath.

a) Creating new font in iReport (via Options -> Fonts -> “Install Font” Button)

Creating the new font descriptor in iReport

b) Exporting the new font (or the existing one) as jar file in iReport (via Options -> Fonts -> “Export as extension” Button)

enter image description here

a) Creating new font in JasperReports Studio (via Window -> Preferences -> JasperStudio -> Fonts -> “Add” Button)

b) Configure your fonts

Exporting font as jar file

c) Create JAR with your fonts in it

Export Font Jar

enter image description here

You can find more information about using Font Extensions here.

Leave a Comment