4,816
社区成员
发帖
与我相关
我的任务
分享
BaseFont bfChinese = BaseFont.createFont(@"C:\WINDOWS\Fonts\SIMHEI.TTF", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
//("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
Font FontChinese = new Font(bfChinese, 10, Font.NORMAL);
PdfPCell title = new PdfPCell(new Phrase("測試報告", FontChinese));
Cell cell = new Cell(new Phrase(title, FontFactory.getFont(@"C:\WINDOWS\Fonts\SIMHEI.TTF", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED)));
Cell cell = new Cell(new Phrase(title, FontFactory.getFont(@"C:\WINDOWS\Fonts\SIMHEI.TTF", BaseFont.IDENTITY_H, 20, Font.NORMAL)));