Jump to content
We've recently updated our Privacy Statement, available here ×

Font Extensions do not work in JasperReports Server 5.5/HTML output


lbelau

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

In order to solve that:

-          Add  a font extension to the server

-          Place the resources involved under  the "fonts" package.

-          Add the line net.sf.jasperreports.web.resource.pattern.fonts=fonts.* to WEB-INF/classes/jasperreports.properties file

For example, if I would create a font extension myself and place the TTF files of the font extension jar under a package called: com.example.mypackage, then I would need to add  a similar property to JRS, to ensure my font files are accessible by the controller who delivers them to the browser: 

net.sf.jasperreports.web.resource.pattern.teodorfonts=com/example/mypackage/.*

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...

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...