Jump to content
Changes to the Jaspersoft community edition download ×

Scrambled result if t1 font not installed


Recommended Posts

By: Zsolt Berentey - zberentey

Scrambled result if t1 font not installed

2003-03-22 03:07

Hi,

 

I have encountered a strange behavior. I use a type 1 font for creating the header of my report. It is set to be embedded into the pdf doc. If the font is installed on the system everything works OK. If however it is not (or I mistype the fontName attribute) The text goes lower and the leading is increased, etc. All in all, it gets scrambled like this:

 

Installed font not installed

 

X X X

---------- --X-X-X--

 

Does anybody have any ideas?

 

Zsolt.

 

 

 

 

By: Teodor Danciu - teodord

RE: Scrambled result if t1 font not installed

2003-03-22 05:03

 

Hi,

 

Having the font installed on the system is a MUST

for JasperReports to be able to use it.

The "fontName" attribute makes reference

to an installed font.

The "pdfFontName", "pdfEncoding" and "isPdfEmbedded" attributes

are used only when exporting to PDF.

But the layout is made based on the value of the

"fontName" attribute and if that font is not installed

the engine will use some default font and all the

layout is wrong.

 

I hope this helps.

Teodor

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