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

Custom Font in Reports (Could not load the following font)


lordburningleaf

Recommended Posts

Dear all,

I have a problem with the fonts in PDF.

In my report the textfields should be able to print unicode texts. For that i found a solution in a forum:

I added the font arial.ttf into the repository, set "Pdf Embedded" true and the "Pdf Encoding" to "Identity-H". (see attachment)

When i run the Report from the Jasperserver (http:localhost/jasperserver), everything works fine when i generate the PDF report. But when i run the same PDF report from my WebApp, then i get following error:

 

net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font :
pdfFontName   : repo:arial.ttf
pdfEncoding   : Identity-H
isPdfEmbedded : true

 

Has anybody an idea whats wrong? Because it's the same report!

 

Thank you all very much!



Post Edited by lordburningleaf at 11/23/2010 14:22
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...

Right, items registered in JasperServer need rights to access resources usually by registering it to a session.

Take caution on those Windows font files. They have copyrights are MS doesn't allow users to use them outside Windows.



Post Edited by hozawa at 12/19/2010 08:14
Link to comment
Share on other sites

  • 6 years 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...