unicode - Subset Font By Specific Glyphs -


i have 14mb ttf containing simplified chinese characters.

i'd reduce size creating subset contains specific characters within html page.

so, ideally, i'd pass (linux) program block of text , have recreate font based on characters contained.

e.g.

 ./magic-font-squisher input.tff "abc123水小长" 

or

 ./magic-font-squisher input.tff /path/to/test.html 

the new font have 9 characters present.

have used https://bitbucket.org/philip/font-optimizer/src

./subset.pl --chars="abc 123 水小长" input.ttf output.ttf 

which want.

how found it

google font directory contains subset tool. readme says

--string=: generate subset specified string. useful creating menu subset. use subset.pl font optimizer this, however.

a search font optimizer took me demo site allows test script.

there forked github repo has better documentation.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -