Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jasper fonts on linux

My .jasper report made using verdana on windows does not work on the client running tomcat under red hat linux.

Is there any way to link the verdana.ttf to the .jasper, or the only way around this is to install verdana.ttf on the server side? Is there any other solution?

like image 496
Vitor Hugo Avatar asked May 29 '26 01:05

Vitor Hugo


1 Answers

There is a lower level alternative. You can unzip the jar jasperreports-fonts-x.x.x.jar in the lib directory of jasper server's.

Check the structure and edit/add the appropriate XML files and the TTF files you need. Maintain coherence in what's in there.

I was having troubles including fonts every time so I did that and only have to worry on the next upgrade :)

Hope it helps, good luck.

like image 155
marram Avatar answered May 31 '26 09:05

marram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!