Jump to content
JasperReports Library 7.0 is now available ×

PDF fonts not working


2004 IR Help

Recommended Posts

By: greg - gstasica1

PDF fonts not working

2005-07-09 14:22

hi,

I've section in my XML file like that:

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Comic Sans MS" pdfFontName="COMICBD.TTF" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

 

The most important part is font for PDF. Unfortuantelly it doesn't work. The font is installed in the system

 

 

 

 

By: bourridhh - bourridhh

RE: PDF fonts not working

2005-07-11 02:20

Hi ,

You need to specify full path for your font

example "c:\COMICBD.TTF" but it s not a good idea when

you manage to package your project in an ear file

 

 

 

 

 

By: Andrey - andfedotov

RE: PDF fonts not working

2005-07-12 01:57

Hello!

You need to use isPdfEmbedded ="true" to include this font to your result document.

To allow finding your font for filling process it should placed in your CLASSPATH dir. (Simply add dir with your fonts to the CLASSPATH).

Hope it'll help

Andrey

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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