8000 Could not add some characters to the output subset font · Issue #55 · googlefonts/sfntly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Could not add some characters to the output subset font #55

Open
Neugls opened this issue Jun 2, 2016 · 1 comment
Open

Could not add some characters to the output subset font #55

Neugls opened this issue Jun 2, 2016 · 1 comment

Comments

@Neugls
Copy link
Neugls commented Jun 2, 2016

I use command like the following:

sfnTool -s "测试字体" c:\windows\fonts\华文彩云.ttf c:\out.ttf

but the output font have no characters, just an empty one.

华文彩云.ttf

@Jijun
Copy link
Jijun commented Feb 10, 2019

it's a bug in subset com.google.typography.font.tools.sfnttool.GlyphCoverage.getBestCMap() , RenumberingCMapTableSubsetter.getCMapFormat()
the font 华文彩云.ttf have two cmap format4 subtable:

cmap_format_4 platformID="1" platEncID="25"
cmap_format_4 platformID="3" platEncID="1"

the code never get the bigger cmap4

cmap_format_4 platformID="3" platEncID="1"

but use

cmap_format_4 platformID="1" platEncID="25"

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

No branches or pull requests

2 participants
0