2015-08-11 03:47:35 +03:00
|
|
|
# Tools
|
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
## Sample Usage
|
2015-12-14 12:52:21 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
Compare fonts:
|
2015-12-14 12:52:21 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
python compare_font.py font1.ttf font2.ttf;
|
2015-08-11 03:47:35 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
Add a METADATA.pb to a family directory
|
2015-08-11 03:47:35 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
python add_font.py ../ofl/newfamily;
|
2015-08-11 03:47:35 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
Sanity check a family directory:
|
2015-08-11 03:47:35 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
python sanity_check.py --repair_script=/tmp/fix.py ../ofl/josefinsans;
|
|
|
|
python sanity_check.py --repair_script=/tmp/fix.py --fix_type=fsSelection ../ufl;
|
2015-08-11 03:47:35 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
## Dependencies
|
2015-12-08 22:07:36 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
To use `compare_font.py` and `sanity_check.py` you will need:
|
2015-12-08 22:07:36 +03:00
|
|
|
|
2016-02-19 16:54:50 +03:00
|
|
|
* https://github.com/google/google-apputils
|
2015-12-08 22:07:36 +03:00
|
|
|
* https://github.com/google/protobuf
|
2016-02-19 16:54:50 +03:00
|
|
|
* https://github.com/behdad/fonttools
|
|
|
|
|
|
|
|
These can be installed with pip:
|
|
|
|
|
|
|
|
sudo easy_install pip;
|
2016-08-05 07:57:43 +03:00
|
|
|
pip install --user google-apputils protobuf git+git://github.com/behdad/fonttools.git;
|
2016-02-19 16:54:50 +03:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
The tools and files under this directory are available under the Apache License v2.0, for details see [LICENSE.txt](LICENSE.txt)
|