1
0
mirror of https://github.com/google/fonts.git synced 2024-12-28 11:15:02 +03:00
fonts/tools/README.md

40 lines
1019 B
Markdown
Raw Normal View History

2015-08-11 03:47:35 +03:00
# Tools
2016-02-19 16:54:50 +03:00
## Sample Usage
2016-02-19 16:54:50 +03:00
Compare fonts:
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
## Requirements
These tools are intended to work with Python 2.7 systems.
While these tools may work with Python 3.x, if so, that's a happy accident.
2016-02-19 16:54:50 +03:00
## Dependencies
2016-02-19 16:54:50 +03:00
To use `compare_font.py` and `sanity_check.py` you will need:
2016-02-19 16:54:50 +03:00
* https://github.com/google/google-apputils
* 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;
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)