Jump to content
Changes to the Jaspersoft community edition download ×

add font to JasperServer for export as PDF


stephan_r

Recommended Posts

Hi all,

I got problems using my own fonts when exporting to PDF. JasperServer always says:

net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font : pdfFontName   : Humnst777BtBold.ttfpdfEncoding   : Cp1250isPdfEmbedded : false

What steps are necessary to make it work. I already tried to add the font as a resource of the report by using the plugin in iReport and the webservice of JasperServer, without success.

I would appreciate any advice

Stephan

 

PS: I'm using JasperServer 3.5.0 CE



Post Edited by stephan_r at 07/12/2009 11:39
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

in the pdf Font Name i'm typing the full path to font :

pdf Font Name: C:\WINDOWS\Fonts\ARIAL.TTF

pdf Encoding: Identity-H (Unicode with horizontal writing)

it's works.

 

maybe you can also modify pdfFontBeans.xml in WEB-INF ..

 

 

Link to comment
Share on other sites

Hi malek,

thanks for your reply. I tried it your way, with the absolute path and it works /tools/fckeditor/editor/images/smiley/msn/teeth_smile.gif

But I try to avoid to work with absolute paths because it makes always trouble and a lot of work if anything changes. I think I found the more comfortable solution. If you add your font to the repository of JasperServer you can use "repo:yourfont.ttf" instead of a separate folder and a absolute path.

Thanks anyway

Stephan

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