Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Custom Chinese font file

remgeo

2007-06-29

Replies:


Hello,

I am trying to use a custom font file to display Chinese characters.
This is how I am creating the font.

BaseFont bfComic = BaseFont.createFont("c:\\windows\\fonts\\HDZB_86.TTF",
BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
String text1 = "\u6F22\u9F0E\u7E41\u7425\u73C0";

But in the PDF, no characters are visible.

If I use the fonts as specified in iTextAsian.jar, but that is not good
enough for me. I have to work with custom font files.

Can someone please advise where I am going wrong?

Thanks, Rema
--
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.