How to resolve Font " 'MS PGothic' with 'Identity-H' is not recognized " error ?.

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 am using a java application which reads data from a CSV file. The Java application does not uses any beans or framework. It is a core java based application. 

We generate a report template using iReports (4.1.3). The data is then filled into the report template. While doing so I am facing below issue.

Issue Stack Trace: -

net.sf.jasperreports.engine.JRRuntimeException: com.lowagie.text.DocumentException: Font 'MS PGothic' with 'Identity-H' 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.JRPdfExporter.exportText(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportFrame(
    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(
    at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(
Caused by: com.lowagie.text.DocumentException: Font 'MS PGothic' with 'Identity-H' 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(
    ... 16 more

I have included below jars in the build path of my application: -

1. jasperreports-fonts-4.5.0.jar

2. jasperreports-4.5.0.jar

3. jasper-compiler-jdt.jar

4. itext-asian-5.1.1.jar

5. itextpdf-5.4.3.jar

6. iTextAsianCmaps.jar

Also I created the font extension and included in my build path. I have also ensured that the properties file "" has the required entry of font. However the error still persists.

Font Name: - MS PGothic (TTF)

Please help.

rugvedj's picture
Joined: Feb 20 2014 - 2:46am
Last seen: 8 years 4 months ago

0 Answers:

No answers yet