Re: [iText-questions] Can't display ő and ű characters in PDF

2009-01-25 Thread Balázs Grill
Okay, the problem is solved. the thing that confused me that was the BaseFont.createFont() method when fails to load the fonts it doesn't throw an IOException (as the javadoc sais), but it falls back to Helvetica. (and this method can't load fonts from classpath /jar/, so I had no clue what's

[iText-questions] Can't display ő and ű characters in PDF

2009-01-24 Thread Balázs Grill
Hi! I tried to create PDFs in hungarian language therefore it contains characters such as ő (\u0151) or ű(\u071). These characters are not displayed in the resulting PDF. I created a snippet, which tries to add such characters to the document. Am i doing it wrong? public static void

Re: [iText-questions] Can't display ő and ű characters in PDF

2009-01-24 Thread Leonard Rosenthol
Not only do you have to pick a font where those characters (glyphs) exist in teh font - BUT you also need to embed the font in the PDF so that everyone can see them... Leonard 2009/1/24 Balázs Grill balag...@gmail.com Hi! I tried to create PDFs in hungarian language therefore it contains

Re: [iText-questions] Can't display ő and ű characters in PDF

2009-01-24 Thread Balázs Grill
I've loaded the fonts using BaseFont.createFont(file.ttf,BaseFont.IDENTITY_H,true); The last parameter says that this font should be embedded in the document, isn't it? Do i need explicitly embed the fonts above this? 2009/1/24 Leonard Rosenthol leona...@pdfsages.com: Not only do you have to

Re: [iText-questions] Can't display ő and ű characters in PDF

2009-01-24 Thread mister bean
The font must permit embedding for this to work. Most fonts do, but many do not. Have you checked this particular font file? ---mr. bean Balázs Grill wrote: I've loaded the fonts using BaseFont.createFont(file.ttf,BaseFont.IDENTITY_H,true); The last parameter says that this font should