989989272c Posted August 14, 2014 Share Posted August 14, 2014 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. Link to comment Share on other sites More sharing options...
Solution ghudson_1 Posted August 14, 2014 Solution Share Posted August 14, 2014 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#fontextensionsIt'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-INFlib dir of your appserver) Link to comment Share on other sites More sharing options...
989989272c Posted August 14, 2014 Author Share Posted August 14, 2014 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? Link to comment Share on other sites More sharing options...
hozawa Posted August 14, 2014 Share Posted August 14, 2014 If you add a custom font, it's necessary to copy the font jar to the file directory and restart JasperReports Server. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now