Jump to content
Changes to the Jaspersoft community edition download ×

Problem with font in PDF file


2004 IR Help

Recommended Posts

By: Aleksey Malakhovskiy - aleksmal

Problem with font in PDF file

2005-08-04 01:05

I generate report in PDF format with True Type font from third party producer. Parameter isPdfEmbedded = "true". All work fine! But all lines in results report are little wider than I want.

I can not change font size because height of chars must be determined size. Can I change gaps between chars? And if I can then how?

 

 

 

 

By: Teodor Danciu - teodord

RE: Problem with font in PDF file

2005-08-05 01:14

 

Hi,

 

You are using the TTF file for the pdfFontName

attribute I assume.

Make sure that the TTF file is also available to the JVM

as an installed font and that is used by AWT when

during report filling where text measurements are made.

 

Does your report look the same when viewed with our

built-in JasperViewer and when viewed in PDF?

It should look the same.

 

There is no way for us to control the amount of space

between characters. It depends on the properties

of the font and we don not have access to modify that.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Adeel - revenger55

RE: Problem with font in PDF file

2006-05-12 03:26

How to make the font availble to Jvm i have tried everything . ihave placed the font in the java's font directory and also add the path of the fonts directory in classpath

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Problem with font in PDF file

2006-05-12 03:34

 

Hi,

 

Font.createFont() should work.

Check the JavaDocs.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Adeel - revenger55

RE: Problem with font in PDF file

2006-05-17 00:18

i have tried the font.createFont() but it does not work. If i give the full path of the font

e.g. c:/winnt/fonts/Arial.ttf in the <font> tag in jrxml file, it works fine even i dont use Font.createFont() any suggestion?

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