Jump to content
JasperReports Library 7.0 is now available ×

External TTF font


2005 IR Help

Recommended Posts

By: arvind - arvindsigma

External TTF font

2005-05-20 08:26

I had used verdana font to display text in my report for this i used external font property to display it in iReport. But while running it on server the font mapper is not able to find the verdana file ..actually it is not there in iText.jar ...in itext.jar the fonts are in afm format ....how could i get the afm font or utility by which the font mapper can map verdana font ...or am i doing wrong somewhere or forgot to have done something ...i am running my report via tomcat please help me out

 

 

 

 

By: Giulio Toffoli - gt78

RE: External TTF font

2005-05-23 16:22

 

Put your font in the classpath (i.e. in <tomcat>/webapps/your_app/WEB-INF/classes

 

Giulio

 

 

 

 

By: jane_lim - jane_lim

RE: External TTF font

2005-10-03 19:19

Hi,

I face same problem now. i am using jboss.

i use simhei.ttf as my external font .. it shows fine in iReport but when running in jboss, it shours square box ....

 

where i did wrong??

 

in my testing code i also try to put

HashMap fontMap = new HashMap();

FontKey key = new FontKey("SimHei", false, true);

PdfFont font = new PdfFont("C:/iReport-0.5.1/fonts/simhei.ttf", "Identity-H", false);

fontMap.put(key, font);

 

but the output still the same...

 

where i have done wrong??

 

pls advice ...

 

thanks

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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