Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otf 字体不支持 #3

Open
jp1017 opened this issue Jul 27, 2016 · 2 comments
Open

otf 字体不支持 #3

jp1017 opened this issue Jul 27, 2016 · 2 comments

Comments

@jp1017
Copy link

jp1017 commented Jul 27, 2016

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)

@forJrking
Copy link
Owner

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

@waylife
Copy link

waylife commented Feb 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants