Skip to content

Do your web font by yourself. 自己的字體,自己做。

License

Notifications You must be signed in to change notification settings

dieface/domywebfont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

A tool helps make your custom font only contains the characters you want!

Based on behdad/fonttools and noto

Requirements

Usage

Put 'coverage.py' and 'domywebfont.py' in the same folder, and execute the command below:
$ python domywebfont.py <input_font> <output_font> <word_list>

ex.
$ python domywebfont.py NotoSansCJKtc-Light.otf NotoSansCJKtc-Light-min.otf words_to_keep_list.txt

  • <input_font>: original font file name/path. (ex. NotoSansCJKtc-Light.otf)
  • <output_font>: custom font file output name/path. (ex. NotoSansCJKtc-Light-min.otf)
  • <word_list>: file keep words you want as one character each line. (ex. words_to_keep_list.txt)

You can go into 'example' folder and execute the command above to give it a try!
Alt text

License

See "LICENSE.md" for licensing information.

Do your web font!
p.s. Please don't use it on license protected font. (請勿用在有版權的字體上)

Bruce Lee [email protected]

About

Do your web font by yourself. 自己的字體,自己做。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages