Use:
BaseFont.createFont("mingliu.ttf,0", BaseFont.IDENTITY_H, true);
Get the number of fonts with:
BaseFont.enumerateTTCNames("mingliu.ttf");
Note that if you are using FontFactory it has a bug and the index is one
off. The line 526:
trueTypeFonts.setProperty(names[i], path + "," + (i + 1));
should be:
trueTypeFonts.setProperty(names[i], path + "," + i);
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Bruno [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, December 04, 2002 10:06
> To: SOBANA Rathnam
> Cc: [EMAIL PROTECTED]
> Subject: [iText-questions] Re: Help needed
>
> Quoting SOBANA Rathnam <[EMAIL PROTECTED]>:
>
> > Hi,
> > I need Traditional Chinese fonts to be printed in my report.I have got
> 2
> > chinese fonts.
> > 1)Mingliu.ttc
> > 2)Kaiu.ttf.
> >
> > When i use Mingliu.ttc in my BaseFont it gives me an error that it
> cannot
> > be used with BaseFont.IDENTITY_H or BaseFont.IDENTITY_V.
> >
> > When i use Kaiu.ttf it gives me an ArrayIndexOutofBoundException in my
> > BaseFont class.
> >
> > Can u pls help me out of this ..Needed a very urgent reply.
>
> I don't have the time rightnow, I forward the question to the mailinglist.
>
> Bruno
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Microsoft Visual Studio.NET
> comprehensive development tool, built to increase your
> productivity. Try a free online hosted session at:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions