On 16/06/2011 10:40, Siegfried Raab wrote:

Thank's for answering so kindly.

1.Yes, I use PdfGraphics2D


OK, so you're creating a FontMapper. Is that correct? (You didn't say in your original question.)

2.I refer to the java.awt.Font named "Symbol"


If you map this font to the "standard type 1 font" symbol (which is what you seem to be doing), you won't be able to embed the glyphs.

3.Although You suppose I didn't I read any documentation I did several times. I even bought it. And I know about Type1-Fonts and I know that they aren't embedded by iText. But I don't know that the awt.Font "Symbol" is interpreted as a type1 font by iText.


???
But you're creating a FontMapper, meaning that you are looking to map java.awt fonts to iText fonts.
YOU DECIDED how the java.awt font "Symbol" is interpreted.
YOU DECIDED to use FontFactory to map the java.awt fonts.
Did you check if FontFactory knows about the Symbol font, and if so, to which font it maps?

4.It seems You are supposing I am a lazy idiot.


Your assumption is wrong. I was not supposing anything.
I was referring to the documentation. If you need more detail:
p483: There's a default font mapper class called DefaultFontMapper. This class maps [...] AWT font names to the standard Type 1 fonts. p352: Note that the BaseFont.EMBEDDED parameter will be ignored for the standard Type 1 fonts. p355: A Type 1 font can have a special built-in encoding, as is the case for Symbol and Zapf Dingbats. p482: Watch out when using fonts. There's a big difference between the java.awt.Font and com.itextpdf.text.Font font classes. On p482, there's a reference to section 14.5.2 that explains how to map a java.awt Font (e.g. Symbol) to an iText BaseFont.

------------------------------------------------------------------------------
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

Reply via email to