Hi! I am facing a problem when rendering dynamic PDF reports on server (Ubuntu). I have already tested it on local OS (windows and MacOSX) and the PDF was generated perfectly, but when I deploy it on Ubuntu, MyriadPro bold is not appearing but presented no errors on tomcat log. I am working with Calibri and MyriadPro. Calibri is working perfectly on Ubuntu.
I have created two different jars for each font, installed both on my maven repository and included the dependencies on pom.xml. No difference on results. (at first I have created just one jar including both fonts and had the same results).
I am using JasperReports, spring boot with embedded tomcat and deploying a jar file.
Just to clarify, the application works perfectly on my local enviroment (windows and MacOSX) using the jar file or eclipse.
Many Thanks in advance
3 Answers:
You probably need to install the fonts system wide in Ubuntu. I am not sure if the font you mention ( MyriadPro ) is avalible in Ubuntu.
You could probably install it from terminal via sudo apt-get or try putting it manually into the System wide fonts in the directory '/usr/share/fonts/'.
You've also got some graphical software selection tools available if you do not like the terminal. Just note that the graphical software tends to put fonts in your local user /.fonts (hidden) directory and that is not available to the services.
Once the font is installed you will need to re-start the services for them to be applied.
it didn't work. When I use the jar file on MacOSX I do not have these fonts installed on my enviroment and the pdf renders good. I do not have installed Calibri on Ubuntu as well and it works.
Anyway I have installed MyriadPro in Ubuntu and it is still not working.
thanks
Solved. The problem was a conflict between the height of text field element and the font. It seems on Ubuntu it is different from windows and MacOSX. Because of this the font did not appear. I have considered a slack on text field height to avoid this problem.
thanks