FONTS????

0

How does one add a tff font to jaspersoft studio properly. I added it to the system so it renders great in preview, but then when I exported it to a pdf and uploaded it to the jaspersoft server the font didnt work. How do I then export it properly and upload it to the server properly? Thanks. If you answer my question you shall recieve a haiku.

989989272c's picture
Joined: Aug 14 2014 - 8:26am
Last seen: 5 years 2 months ago

2 Answers:

1

Hi,
You need to use the JR Library feature referred to as font extensions.    This is described here and iReport and Studio both have some helper wizards to create the jar for you:
http://jasperreports.sourceforge.net/sample.reference/fonts/index.html#f...

It's detailed in the JasperReports Ultimate Guide, and our salesengineer provides some illustrated background on the topic here in his blog here:
http://mdahlman.wordpress.com/tag/font-extensions/ 

In Studio choose Window -> Preferences -> Jaspersoft Studio -> Fonts, click Add to add your ttf, eventually choose "Export" to create the font extension jar (it's just a bundle of the files as described above).    Add the jar to your runtime classpath (like the WEB-INF\lib dir of your appserver)

ghudson_1's picture
23899
Joined: Oct 30 2012 - 12:51pm
Last seen: 2 days 13 hours ago

In the time since I posted trial and error availed. However, do I need access to the machine in which jasperreports is running besides the webui?

989989272c - 5 years 2 months ago
1

If you add a custom font, it's necessary to copy the font jar to the file directory and restart JasperReports Server.

hozawa's picture
51178
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 months 1 week ago
Feedback