我采用这样的方式没法打印出汉字,而且生成的pdf也有错误
String chinese ="我们";
BaseFont bfChinese = BaseFont.createFont("STSong-Light","UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
Paragraph chunk = new Paragraph(chinese, FontChinese);
document.add(chunk);按如下方法可以,可是汉字的印刷质量比较差,太淡了,如果我把NORMAL改成BOLD,又浓了点
有什么解决方法吗?谢谢
BaseFont bfChinese1 = BaseFont.createFont("C:\\WINDOWS\\Fonts\\simsun.ttc,1", BaseFont.IDENTITY_H,BaseFont.NOT_EMBEDDED);
com.lowagie.text.Font FontChinese1 = new com.lowagie.text.Font(bfChinese1, 14, com.lowagie.text.Font.NORMAL);