java.io.IOException: The TrueType font null does not contain a 'cmap' table
at org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmapImpl(TrueTypeFont.java:553)
at org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmapLookup(TrueTypeFont.java:533)
at org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmapLookup(TrueTypeFont.java:519)
at org.apache.fontbox.ttf.TTFSubsetter.(TTFSubsetter.java:90)
at org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.subset(TrueTypeEmbedder.java:346)
at org.apache.pdfbox.pdmodel.font.PDType0Font.subset(PDType0Font.java:256)
at wiki.xsx.core.pdf.component.text.XEasyPdfText.draw(XEasyPdfText.java:277)
at wiki.xsx.core.pdf.component.table.XEasyPdfCell.writeText(XEasyPdfCell.java:338)
at wiki.xsx.core.pdf.component.table.XEasyPdfCell.doDraw(XEasyPdfCell.java:281)
at wiki.xsx.core.pdf.component.table.XEasyPdfRow.doDraw(XEasyPdfRow.java:158)
at wiki.xsx.core.pdf.component.table.XEasyPdfTable.draw(XEasyPdfTable.java:226)
at wiki.xsx.core.pdf.page.XEasyPdfPage.build(XEasyPdfPage.java:343)
at wiki.xsx.core.pdf.page.XEasyPdfPage.build(XEasyPdfPage.java:318)
at wiki.xsx.core.pdf.doc.XEasyPdfDocument.initTarget(XEasyPdfDocument.java:644)
at wiki.xsx.core.pdf.doc.XEasyPdfDocument.createTarget(XEasyPdfDocument.java:614)
at wiki.xsx.core.pdf.doc.XEasyPdfDocument.image(XEasyPdfDocument.java:427)
我是加载
// private String fangsongpath="C:\Windows\Fonts\simfang.ttf";
private String fangsongpath="C:\\Windows\\Fonts\\STSONG.TTF";
这两个字体都不行
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
问题已修复,谢谢反馈
登录 后才可以发表评论