On JasperServer my fonts where changed, i.e. Times-Bold instead of my Times New Roman.

0

Teodor,

I added fonts to iReport (installed) and than even created jar (export as extension) and add it to iReport classpath .
In iReport everything is ok.

On JasperServer my fonts where changed, i.e. Times-Bold instead of my Times New Roman.


I add my jar with fonts (exported as extension from iReport) to jasper server Datasource/Add Resource/File/jar.
But it didn’t help.

We didn’t restart jasper server.
I’m not sure of it’s version.

I use iReport 4.0.0.

could you help us

thanks

Marek
 

77marek77's picture
Joined: Feb 11 2015 - 4:02am
Last seen: 3 years 11 months ago

4 Answers:

0

And Teodor answered:
--------------

Hi,

Thar JAR with the font extensions created from iReport needs to be put in the WEB-INF/lib folder of your JRS web application.
The following line needs to be added to the WEB-INF/classes/jasperreports.properties file:

net.sf.jasperreports.web.resource.pattern.fonts=fonts/.*

The web server then needs to be restarted.

I hope this helps.
Teodor

 

77marek77's picture
Joined: Feb 11 2015 - 4:02am
Last seen: 3 years 11 months ago
0

I just asked server admin for change.

M.

77marek77's picture
Joined: Feb 11 2015 - 4:02am
Last seen: 3 years 11 months ago
1

If it's only for a report, it's also possible to upload the font jar file from the web browser by right click the folder in a repository.

hozawa's picture
52422
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago
0

Should I restart jasper server after this upload ?

Admin did:
„I took jasperserver.war from http://testsp2.allianz.com.pl/ , I added MyFonts.jar to WEB-INF/lib and net.sf.jasperreports.web.resource.pattern.fonts=fonts/.*  at the end of the WEB-INF/classes/jasperreports.properties file.”

I still experience problems with it.

I dont know how to send files - you could look at it: jrxml, pdf generated by iReport and on the server.

M.

77marek77's picture
Joined: Feb 11 2015 - 4:02am
Last seen: 3 years 11 months ago
Feedback
randomness