iText 中如何支持中文字体,iText中文字体,[Java]代码Base
分享于 点击 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));
用户点评