Hi,
I've been using iText and JFreeChart successfully with jdk 1.4.2. I
have now switched to jdk 1.5 and am having big problems with the
translation of fonts: under jdk 1.4.2 all the fonts used for labels etc
are converted to proper pdf fonts and they look great on the screen.
With jdk 1.5 the fonts look very jagged - as if they are very rough
bitmaps. They print ok though, so it may be that they are either high
resolution bitmaps or a custom font is included in the pdf. The size of
a 1-page file with a single graph goes from 33k to 176k.
I tried the same thing with the example from
http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent/graphics2D/JFreeChartExample.java
and found exactly the same behaviour: perfect with jdk 1.4.2 and
terrible with jdk 1.5 and a roughly 6-fold increase in the size of the
generated pdfs.
I put a break point in the DefaultFontMapper and it does seem to
translate the fonts correctly.
Does anybody have any idea what is going on?
Thanks,
Adriaan
begin:vcard
fn:Adriaan Joubert
n:Joubert;Adriaan
org:Albourne Partners (Cyprus) Ltd
adr:;;3 D. Vikella Street;Nicosia;;1061;Cyprus
email;internet:[EMAIL PROTECTED]
tel;work:+357 22 750652
tel;fax:+357 22 750654
x-mozilla-html:FALSE
url:http://www.albourne.com
version:2.1
end:vcard