Using jarnal, which uses iText for PDF creation, I have the problem that
my custom font is not embedded.
Fonts are used with the following code:
mapper = new
com.lowagie.text.pdf.DefaultFontMapper();
com.lowagie.text.FontFactory.registerDirectories();
if(Jtool.checkMSWindows()){
mapper.insertDirectory("c:/windows/fonts");
mapper.insertDirectory("c:/winnt/fonts");
}else {
mapper.insertDirectory("/usr/share/fonts");
mapper.insertDirectory("/usr/share/fonts/local");
}
cb = writer.getDirectContent();
tp = cb.createTemplate(w, h);
g2 = tp.createGraphics(w, h, mapper);
My custom font is installed in one of the directories which are queried
by
com.lowagie.text.FontFactory.registerDirectories().
The application does use the font for display, does also produce correct
Postscript, but does not embed the font in PDF.
My Quesion is now: It seems that using the default FontMapper, all ttf
fonts are NOT_EMBEDDED. Ist this correct?
My opinion is that only the standardized PDF fonts should not be
embedded, all others should be embedded by default. Can I change the
above code to change the behaviour in this direction, or are changes to
iText required?
Best regards, Jörg Weimar.
--
Professor Dr. Jörg R. Weimar
Fachhochschule Brandenburg, FB Informatik & Medien.
Magdeburger Str. 50, 14770 Brandenburg an der Havel, Germany
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/