Hi all,

I just recently updated the iText.jar for my program from iText 2.1.7 to
iText 5.0.4. There had been quite some changes and one of them is bothering
me right now and I can't figure out why. I used to be able to have my
program function correctly and generates a PDF file with chinese characters.
Code snippit:

BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H",
BaseFont.NOT_EMBEDDED);
Font fontChinese = new Font(bfChinese, 13, Font.NORMAL);
.
.
.

After I did the update, this line of code no longer works. It's throwing me
this exception:

com.itextpdf.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H'
is not recognized.

I already imported iTextAsian.jar (as it worked for me before the update).

Thanks!
John
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Asian-font-not-recognized-after-update-tp2991134p2991134.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to