fontmin icon indicating copy to clipboard operation
fontmin copied to clipboard

unable to subset certain characters

Open bitinn opened this issue 9 years ago • 2 comments

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.

bitinn avatar May 19 '15 11:05 bitinn

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

junmer avatar May 20 '15 03:05 junmer

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/

bitinn avatar May 20 '15 04:05 bitinn