Thank you for testing the ttf file. The file in SL is a ttc file which I was
unable to find on the net and I am not surprised after learning that the ttc
font uses the resource fork which only works on Mac where the font is always
available. If Java and because of that iText is unable to read the font
correctly which font is then embedded into the document? Does iText support
the ttc format at all?
I checked the font in leopard and there LucidaGrande is stored as a dfont
where the font information is stored in the file data fork which obviously
seem to work.

Darn Mac people.... Resource forks really must die....


Thank you for your help,
Christoph Wagner

(preferring any other operating system over Macs)



> -----Original Message-----
> From: Paulo Soares [mailto:psoa...@glintt.com]
> Sent: Saturday, December 19, 2009 12:08 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Umlaut problem with
> PdfGraphics2DonSnowLeopard
>
> 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" <cwag...@canto.com>
> To: "'Post all your questions about iText here'"
> <itext-questions@lists.sourceforge.net>
> 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:psoa...@glintt.com]
> > 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:cwag...@canto.com]
> > > 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
> iText-questions@lists.sourceforge.net
> 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
iText-questions@lists.sourceforge.net
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/

Reply via email to