Installing a new font

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email with questions or issues requiring TIBCO review or response.


I have upgraded from IReport 5.10 to Jasper Studio 5.5.5, how do I install a new font using a .jar file? I don't have the actual fonts only this file.

In IReport you could simply add it as a new classpath and it would appear in the fonts list, but I can't figure it out in Jasper Studio. Going to the font option you have to select the individual fonts and I don't know how to add the new class path

Any help would be highly appreciated.


shayl.voss's picture
Joined: Oct 28 2013 - 3:43am
Last seen: 8 years 5 months ago

2 Answers:


you can modify the Build-Path of your JasperReports project. Simple right-click on the project, I suppose you have "MyReports" default one, and hit "Properties".

After that choose "Java Build Path", tab libraries and 1) "Add Jars" if you can access them in the workspace 2) "Add External Jars" if they are located in the file system. 

This way you should be able to access the fonts. 

Moreover in the Jaspersoft Studio Preferences you can access the page "Jaspersoft Studio > Fonts" and from there add manually fonts if you will have to work with TTF files.

Hope this can help.
Best regards,

mrabbi's picture
Joined: Oct 31 2011 - 9:20am
Last seen: 13 hours 59 min ago

Excellent, thanks for the answer

shayl.voss - 8 years 7 months ago

I am having the exact same issue. I did Project Properties ->Fonts --> Configure Workspace settings ->Add->

  1. True Type : C:\tmp\ARIALN.TTF
  2. PDF Font Name : Left empty as none of the choices has arial narrow
  3. Embed this font in PDF doc : checked. 
  4. Everything else is default

Then applied my new font to a lable on my report and I keep getting this error:

at org.eclipse.jface.operation.ModalContext$
Caused by: net.sf.jasperreports.engine.JRRuntimeException: com.lowagie.text.DocumentException: Font '' with 'Cp1252' is not recognized.
at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(
at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(
at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(
at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.getPhrase(
at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.render(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(
... 1 more
Caused by: com.lowagie.text.DocumentException: Font '' with 'Cp1252' is not recognized.
at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(
... 12 more
haidar_hadi_205's picture
Joined: May 14 2014 - 12:47pm
Last seen: 8 years 1 week ago