Jump to content
We've recently updated our Privacy Statement, available here ×

Solution to Linux PDF font problem


evank

Recommended Posts

This solution may have been suggested in previous posts, but the PDF font problem seems to come up frequently so I think it is worth repeating.

 

In order for PDF fonts to appear the same under Windows and Linux, you must have the same TrueType fonts available to the Java JRE when a report is generated. To install the fonts on a Linux system:

 

1. Download the msttcorefonts package from http://corefonts.sourceforge.net/

 

 

2. Extract the .ttf files and move them into the $JAVA_HOME/jre/lib/fonts directory. The fonts should now be available to iReport and/or JasperReports.

 

These two steps were all that was required to resolve our problems on a red hat (RHEL4) system. Some distributions (such as Ubuntu) may already have the corefonts package installed and do not run into this issue.

 

Hope this helps!

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...