Font not found in font util class

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: 1 year 6 months 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
1430
Joined: Feb 10 2016 - 8:00am
Last seen: 10 months 1 week ago
Feedback