How are you registering the fonts? The ttc only has 3 fonts inside so, the
allowed indexes are 0, 1, and 2. You gave the number 3.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Kevin Kennedy [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 16:44
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] FontFactory and ttc files
> 
> Hey folks- just getting started working with iText and was running into
> some 
> problems using FontFactory and ttc files. When I register the ttc file 
> everything works fine- I get the new fonts returned when I request 
> registered fonts, but when I call FontFactory.getFont() with the last new 
> name returned I get the following error:
> 
> ExceptionConverter: com.lowagie.text.DocumentException: The font index for
> 
> c:\winnt\fonts\msgothic.ttc must be between 0 and 2. It was 3.
>       at com.lowagie.text.pdf.TrueTypeFont.process(Unknown Source)
>       at com.lowagie.text.pdf.TrueTypeFont.<init>(Unknown Source)
>       at com.lowagie.text.pdf.TrueTypeFont.<init>(Unknown Source)
>       at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
>       at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
>       at com.lowagie.text.FontFactory.getFont(Unknown Source)
>       at com.lowagie.text.FontFactory.getFont(Unknown Source)
> 
> Thoughts? Ideas?
> 
> Thanks,
>   Kevin Kennedy
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing 
> your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to