I am having trouble displaying the truetype font inside SVG, which is displayed in pdf format via fop.
In the final pdf, the font appears with Times New Roman instead of the truetype font that I expected.
The main font family of a document uses Type 1 fonts, and also uses the font metrics that I generated, and they appear correctly. I think the TrueType version of the font was added just for the chart in the past.
The strange thing is that this worked at one stage and seems to have stopped working, and now I can’t get it back, because I don’t understand how it would work in the first place. To try and get the job back, I went through all sorts of combinations of Java 6, Java 5 and FOP 0.95 and 0.93, as well as the latest version of FOP. Even with the full tracking included in the fop gene, I don’t see a mention that the font has been replaced by Times New Roman, but I assume that this is due to the fact that Batik takes responsibility for this rendering.
I ran some sample Java code, and the TrueType font seems to be correctly visible to AWT, which I believe is used by Batik.
I also tried using font substitutions in the fop.xconf file, but this did not seem to affect. In fop.xconf, I only defined Type 1 fonts and another True Type Font Zapfdingbats, which are correctly processed in pdf. Should I also add another truetype font here, but, while checking our version history, it doesn't seem to be in the past.
Is there something that I am missing here since I thought the batik would take the ttf windows font and make it, but that does not seem to work. Any help would be greatly appreciated. Thanks, reeled