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

unable to subset certain characters #10

Open
bitinn opened this issue May 19, 2015 · 2 comments
Open

unable to subset certain characters #10

bitinn opened this issue May 19, 2015 · 2 comments

Comments

@bitinn
Copy link

bitinn commented May 19, 2015

My steps for reproduction

  1. get http://www.apple.com/wss/fonts/PingHei/v1/PingHei-light.woff
  2. convert into ttf via https://andrewsun.com/projects/woffjs/woffer-woff-font-converter/
  3. use character-map to produce the glyph map string like character-map -f pinghei.ttf > map.txt
  4. try to subset the same ttf file, fontmin -t cat map.txt pinghei.ttf > subset.ttf
  5. character-map -f subset.ttf > map2.txt

Compare map.txt and map2.txt, some obscure glyph appear to be missing (most chinese fonts appear to be intact though).

If we only do fontmin pinghei.ttf > subset.ttf the character map doesn't change, so I am guessing some characters are not allowed by your -t settings.

@junmer
Copy link
Contributor

junmer commented May 20, 2015

hi @bitinn , I get http://www.apple.com/wss/fonts/PingHei/v1/PingHei-light.woff 404, can u give me another url ? thx ^_^

@bitinn
Copy link
Author

bitinn commented May 20, 2015

weird, it's definitely in my browser's cache, let me share it then. https://www.dropbox.com/s/ihec7zwd7bpsjlz/PingHei-light.woff?dl=0

(you should also be able to find it on http://www.apple.com/cn/environment/ using chrome's devtool network tab)

PS: once you got the ttf in 2nd step, you can also check it using: http://bluejamesbond.github.io/CharacterMap/

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

2 participants