FontZip icon indicating copy to clipboard operation
FontZip copied to clipboard

otf 字体不支持

Open jp1017 opened this issue 9 years ago • 2 comments

SourceHanSansCN-Regular.zip

压缩上面的 otf 字体报错:

$ java -jar sfnttool.jar -s '0123456789' SourceHanSansCN-Regular.otf                                                                  sou.otf
Exception in thread "main" java.lang.NullPointerException
        at com.google.typography.font.tools.sfnttool.GlyphCoverage.get                                                                Glyph(Unknown Source)
        at com.google.typography.font.tools.sfnttool.GlyphCoverage.tou                                                                chGlyph(Unknown Source)
        at com.google.typography.font.tools.sfnttool.GlyphCoverage.get                                                                GlyphCoverage(Unknown Source)
        at com.google.typography.font.tools.sfnttool.SfntTool.subsetFo                                                                ntFile(Unknown Source)
        at com.google.typography.font.tools.sfnttool.SfntTool.main(Unk                                                                nown Source)

jp1017 avatar Jul 27 '16 01:07 jp1017

提取otf字体测试通过了,建议你使用我最新的工具试试。

forJrking avatar Aug 28 '16 10:08 forJrking

otf字体提取确实会出现问题,应该是sfnttool.jar 的问题 可采用otf->ttf然后再提取ttf字体的方案 https://convertio.co/zh/otf-ttf/

waylife avatar Feb 20 '19 13:02 waylife