But isnt it true that if I use the encoding BaseFont.IDENTITY_H, the font will not be embedded even if I tell it to embed the font..
Thanks, Remgeo Leonard Rosenthol wrote: > > I would also recommend that you embed the font, since it is a custom > font and some/most/all of the recipients of the PDF won't have it. > > Leonard > > On Jun 29, 2007, at 6:49 AM, remgeo wrote: > >> >> 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? >> > > > ------------------------------------------------------------------------- > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > > -- View this message in context: http://www.nabble.com/Custom-Chinese-font-file-tf3999305.html#a11359864 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/