Font Linux Windows cut

0

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

TESRO7's picture
12
Joined: Jul 17 2017 - 2:15pm
Last seen: 1 year 7 months ago

5 Answers:

0

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.

hozawa's picture
56392
Joined: Apr 24 2010 - 4:31pm
Last seen: 7 months 2 weeks ago
0

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

TESRO7's picture
12
Joined: Jul 17 2017 - 2:15pm
Last seen: 1 year 7 months ago
0

https://community.jaspersoft.com/questions/538292/problem-pdf-rendering

Maybe here there is the solution the folder is Libraries if a webApp

TESRO7's picture
12
Joined: Jul 17 2017 - 2:15pm
Last seen: 1 year 7 months ago
0

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

TESRO7's picture
12
Joined: Jul 17 2017 - 2:15pm
Last seen: 1 year 7 months ago
0

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

 

TESRO7's picture
12
Joined: Jul 17 2017 - 2:15pm
Last seen: 1 year 7 months ago
Feedback
randomness