欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > 文章正文

iText 中如何支持中文字体,iText中文字体,[Java]代码Base

来源: javaer 分享于  点击 10497 次 点评:35

iText 中如何支持中文字体,iText中文字体,[Java]代码Base


[Java]代码

BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H",BaseFont.NOT_EMBEDDED); Font chineseFont= new Font(bfChinese, 12, Font.NORMAL);   PdfPCell cellReportSummary = newPdfPCell(newPhrase("支持中文",chineseFont)); 
相关栏目:

用户点评