Font not found in font util class

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 community@tibco.com with questions or issues requiring TIBCO review or response.

Hi guys, 

 I've been strugling with a pdf issue, i want to use Arial font, in jasperStudio preview everything looks normal but when the pdf is generated font is different and texts aren't bold.  I found that Font Util doesn't find the arial font and instead set the helvetica below is a print of the code, if anyone can help, I appreciate it.

Class of the code is JRPdfExporter, line 2634.

gabrieloliveira.17's picture
Joined: Sep 29 2021 - 6:46am
Last seen: 9 months 1 week ago

1 Answer:

Depending on the operating system and due to licensing msft fonts may not be available to the JVM and you will need to install them.  That can lead to this issue as Arial is a msft font particularly with Linux.

You may also need to create a jar with the font extension.  see steps here:  https://community.jaspersoft.com/questions/1170991/pdf-does-not-highligh...

rmeadows's picture
1184
Joined: Feb 10 2016 - 8:00am
Last seen: 1 month 1 week ago
Feedback
randomness