views:

954

answers:

5

A PDF generated in iReport using the 'Times New Roman' font appears to be using 'Arial' for its print version.

Any idea what the problem is?

A: 

I am having the same problem .. have u solve it?

Kim Yap
This is not an answer. Use the comment field below the question.
Dave Jarvis
A: 

Have you tried adding your system fonts directory to the classpath?

Joao Heleno
A: 

have you set the PDF Font Property to Times New Roman as well, or just the Font property?

strapa
A: 

I am also having same problem. If any one get the solution, please mail to asik.umar.i@gmailcom. How to set PDF Font Property to Times New Roman

Thanks, I ASIK UMAR.

Asik Umar
+2  A: 

I've found that, at least for me, I must explicitly set the pdfEncoding attribute, as well as pdfFontName and isPdfEmbedded, on each font tag in the xml, even when using the system encoding, and that "Identity-H" seems to be needed when using unicode.

So:

  1. Make sure your ttf font files are available on the classpath
  2. <font ... pdfFontName="filename.ttf"
  3.    isPdfEmbedded="true"
  4.    pdfEncoding="Identity-H" ... />
abeyer
+1 for `Identity-H`.
Dave Jarvis