Jump to content

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


77marek77
Go to solution Solved by 77marek77,

Recommended Posts

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
 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...