I totally missed that. Thanks very much. ---mr. bean

Benjamin Podszun wrote:
> 
> Hi.
> 
> On Sat, 27 Dec 2008 21:41:41 -0800 (PST), mister bean
> <[email protected]> wrote:
>> Creating a BaseFont for file cambria.ttc (which ships with Vista)
>> generates a
>> DocumentException. The specific code is:
>> 
>> BaseFont bf = BaseFont.createFont( fontFilename, "winansi",
>> BaseFont.NOT_EMBEDDED);
>> 
>> where fontFilename is the full path and filename for cambria.ttc Note
> that
>> this code works without a problem for all .ttf and .otf files.
> 
> ttf/otf files are single fonts, ttc is a font COLLECTION.
> In other words: If you're really specifying the filename of the ttc that's
> not enough.
> 
> Let me refer to
> http://itextdocs.lowagie.com/tutorial/fonts/getting/index.php here, you
> want to specify the ordinal/index of the font that you want/need.
> 
> Regards,
> Ben
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Found-bug-in-BaseFont%27s-handling-of-.ttc-fonts-tp21188543p21190400.html
Sent from the iText - General mailing list archive at Nabble.com.


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

Reply via email to