210 Star 1.6K Fork 385

dromara / x-easypdf

 / 详情

windows10,版本2.1.2报字体异常

已完成
创建于  
2020-12-30 19:51

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)

评论 (2)

小xu中年 创建了任务
小xu中年 关联仓库设置为xsx/x-easypdf
展开全部操作日志

我是加载
// private String fangsongpath="C:\Windows\Fonts\simfang.ttf";

private String fangsongpath="C:\\Windows\\Fonts\\STSONG.TTF";

这两个字体都不行

问题已修复,谢谢反馈

xsx 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
93275 xls web 1578917170 1494292 xsxgit 1585187915
Java
1
https://gitee.com/dromara/x-easypdf.git
git@gitee.com:dromara/x-easypdf.git
dromara
x-easypdf
x-easypdf

搜索帮助