Hi, AFAIK WinAnsi contains german umlauts. When you look at the generated widths for the individual glyphs the offset seem to be correct. For example the last shown width at offset 252 (which is 614) maps exactly to ANSI umlaut ΓΌ (http://www.alanwood.net/demos/ansi.html).
So for me it looks not like an encoding problem. But if I want to try that, how do I configure another encoding when generating the PDF with the PDFGraphics2D object? Thanks for your help, Christoph Wagner > -----Original Message----- > From: Mark Storer [mailto:[email protected]] > Sent: Friday, December 18, 2009 6:37 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Umlaut problemwith PdfGraphics2D > onSnowLeopard > > > 1 0 obj<</LastChar > > > 252/BaseFont/MUSGQI+LucidaGrande/Type/Font/Encoding/WinAnsiEncoding/Su > > btype/TrueType/FontDescriptor 6 0 R/Widths[316 0 0 0 0 0 0 0 0 0 0 0 > 0 > > 0 316 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 749 0 0 0 0 0 0 0 0 0 > > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 512 0 557 0 0 0 0 0 584 0 0 > > 0 0 0 0 409 509 374 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 632 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > > 0 0 0 794 0 0 0 0 0 331 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > > 0 0 0 0 0 0 0 0 614]/FirstChar 32>> > > Bingo. You're creating the font with "WinAnsiEncoding", which is a > single byte font that doesn't have a code for umlaut. "Identity-H" > always works, try that instead. > > --Mark Storer > Senior Software Engineer > Cardiff.com > > #include <disclaimer> > typedef std::Disclaimer<Cardiff> DisCard; > > > ----------------------------------------------------------------------- > ------- > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > Check the site with examples before you ask questions: > http://www.1t3xt.info/examples/ > You can also search the keywords list: > http://1t3xt.info/tutorials/keywords/
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
