Hi.

On Sat, 27 Dec 2008 21:41:41 -0800 (PST), mister bean
<abinst...@pacificdataworks.com> 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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to