stephan_r Posted December 7, 2009 Share Posted December 7, 2009 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 : falseWhat 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 adviceStephan PS: I'm using JasperServer 3.5.0 CEPost Edited by stephan_r at 07/12/2009 11:39 Link to comment Share on other sites More sharing options...
malek Posted December 7, 2009 Share Posted December 7, 2009 in the pdf Font Name i'm typing the full path to font :pdf Font Name: C:\WINDOWS\Fonts\ARIAL.TTFpdf 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 More sharing options...
stephan_r Posted December 8, 2009 Author Share Posted December 8, 2009 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.gifBut 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 anywayStephan Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now