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 wron
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 sho
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 :
> Not only do you have to pick a font where tho
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
> Hi!
>
> I tried to create PDFs in hungarian language therefore it contains
> characters such a
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 main(String[