Hallo,
I try to embed the java.awt.Font "Symbol" using the following code
FontFactory.registerDirectories();
com.itextpdf.text.Font fTtf = FontFactory.getFont(f.getFontName());
try {
fTtf = FontFactory.getFont(f.getFontName(),BaseFont.IDENTITY_H,
BaseFont.EMBEDDED);
} catch (Exception e) {}
while f is the java.awt.Font "Symbol". This throws an exception. Catching
and replacing it with
fTtf = FontFactory.getFont(f.getFontName(),fTtf.getBaseFont().getEncoding(),
BaseFont.EMBEDDED);
works but the Font isn't embedded and results in greek letters.
I already searched the mail archive and found
<http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg10568.
html> [iText-questions] Cannot get glyphs rendering from the Symbol Font
into the PDF file with the advice "Use the encoding "Symbol" for the Symbol
font.". But it doesn't work also.
Thank You in advance for helping
Sigi
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php