Does Java support reading the resource fork? iText only knows about regular fonts with all the information in a single file. I downloaded LucidaGrande.ttf for Windows and it worked. This same file will certainly also work for you.
Paulo ----- Original Message ----- From: "Christoph Wagner" <[email protected]> To: "'Post all your questions about iText here'" <[email protected]> Sent: Friday, December 18, 2009 10:32 PM Subject: Re: [iText-questions] Umlaut problem with PdfGraphics2DonSnowLeopard Hi Paulo, I just tried to copy that font to my windows box when I noticed that the font contains all information in the resource fork. Could this be a problem for iText? Is iText able to read the resource fork to extract font information? Best, Christoph Wagner > -----Original Message----- > From: Paulo Soares [mailto:[email protected]] > Sent: Friday, December 18, 2009 6:41 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Umlaut problem with PdfGraphics2D > onSnowLeopard > > Is the font available for downloading? (I don't have a MAC, only > Windows) > > Paulo > > > -----Original Message----- > > From: Christoph Wagner [mailto:[email protected]] > > Sent: Friday, December 18, 2009 10:22 AM > > To: 'Post all your questions about iText here' > > Subject: Re: [iText-questions] Umlaut problem with PdfGraphics2D > > onSnowLeopard > > > > Hi Paulo, > > > > thanks for your reply. > > > > > Does that font work outside PdfGraphics2D with a plain BaseFont? > > > > What do you mean by that? Should I create a PDF by hand using that > > font? I haven't tried that. The other glyphs are printed correctly > and > > seem to be of the right font. Only the umlauts are not being handled. > > I even looked at the font definition stream in the generated PDF and > > as far as I understand it the widths are correctly calculated and > > inserted and the used characters are valid. The attached document > > shows the phenomenon. > > > > This is the font object from the incorrect PDF: > > > > 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>> > > > > > > Printing with the same font definition to a real Graphics2D object > > prints out everything correctly. > > I am really out of ideas how to address this on my side. > > > > If you need any more information, just let me know and I will try to > > provide as much as can. > > > > > > Best, > > Christoph Wagner ------------------------------------------------------------------------------ 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/
