Hello Everyone,
i can't figured it out how to render in the same way a pdf in windows and linux.
I use sans serif how can i do this? Have i to embed the sans serif in the pdf in the preference tab? But which Helevetica ArialMT? Or maybe i have to export the jar extension and add in the project?
Thank you very much for replying
5 Answers:
To display some fonts correctly in pdf, it may be necessary to setup font extensions.
https://community.jaspersoft.com/wiki/custom-font-font-extension
There shouldn't be any difference between Windows and Linux except Windows by default supports several fonts while it has to be setup in Linux.
Where i have to copy the font extension jar in my application? In the same folder of the .jasper, in the Libreries folder or otherwhere?
I'm following this guide
http://javaskeleton.blogspot.it/2010/12/embedding-fonts-into-pdf-generat...
Thanks
https://community.jaspersoft.com/questions/538292/problem-pdf-rendering
Maybe here there is the solution the folder is Libraries if a webApp
I tryed to add in libraries but nothing change. Bold and italic dont been shown.
If i user pdfFontname i can see bold. But its deprecated and i would like to understand how to use font-extension.
i notice that pdffontname seem to incorporate the font in the pdf. is it correct? but how i can i embed the font with font extension.
Have i to use some paramenter when i build the pdf?
Thanks
I download the last font library from https://community.jaspersoft.com/project/jasperreports-library/releases. and put in tle library folder of the app.
Now i can render the pdf well.
Thanks