fontmin
fontmin copied to clipboard
unable to subset certain characters
My steps for reproduction
- get http://www.apple.com/wss/fonts/PingHei/v1/PingHei-light.woff
- convert into ttf via https://andrewsun.com/projects/woffjs/woffer-woff-font-converter/
- use character-map to produce the glyph map string like
character-map -f pinghei.ttf > map.txt
- try to subset the same ttf file,
fontmin -t
cat map.txtpinghei.ttf > subset.ttf
-
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.
hi @bitinn , I get http://www.apple.com/wss/fonts/PingHei/v1/PingHei-light.woff 404, can u give me another url ? thx ^_^
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/