1
0
mirror of https://github.com/google/fonts.git synced 2024-11-23 17:24:35 +03:00
fonts/tools
rsheeter 76b1866de9 Merge pull request #951 from m4rc1e/add_font
add_font.py: --update metadata option
2017-08-07 08:09:25 -07:00
..
encodings Update README.md 2017-06-05 13:32:41 +03:00
experimental add missing ; 2016-06-23 14:59:41 -07:00
util [tools/util] Fix: some test case got not executed in py3. 2017-03-16 00:12:43 +01:00
add_font.py add_font.py: Implement @rsheeter's review feedback. 2017-06-30 12:54:52 +01:00
compare_font.py Update tools. Most notably allow lower threshold for detecting -ext subsets. 2016-02-04 18:26:44 -05:00
font_weights_coverage.py Fix typo 2017-07-31 15:21:44 -04:00
font-metadata.csv font-metadata.csv updated 2016-06-15 10:51:53 -04:00
fonts_public_pb2.py [tools] update fonts_public_pb2.py to support python 3+ 2017-03-13 20:08:11 +01:00
fonts_public.proto Revert "Add visibility field to tools/fonts_public.proto (#689)" (#692) 2017-03-06 19:34:36 +00:00
fonts_subset_support.py Add 2 new scripts to check subset coverage 2017-07-31 10:42:35 -07:00
LICENSE.txt tools/: Add LICENSE.txt, clarify in tool/README.md 2015-12-14 15:22:21 +05:30
namelist.py [tools/namelist.py] Minor, fix command line invocation. (#1032) 2017-06-26 13:13:25 -04:00
nametest.nam name update 2016-06-28 00:00:51 -04:00
rangify.py Add back tool/rangify.py from hg repo 2016-05-06 13:45:36 -04:00
README.md Update tools/README.md 2017-05-26 17:20:58 -04:00
requirements.txt [tools] temporarily use a python 3 enabled version of google-apputils for testing 2017-03-13 20:08:11 +01:00
sanity_check.py Minor tools updates 2016-04-08 07:50:24 -07:00
space_check.py Update tools. Most notably allow lower threshold for detecting -ext subsets. 2016-02-04 18:26:44 -05:00
unicode_names.py Minor tools updates 2016-04-08 07:50:24 -07:00
what_subsets.py Update tools. Most notably allow lower threshold for detecting -ext subsets. 2016-02-04 18:26:44 -05:00

Tools

Sample Usage

Compare fonts:

python compare_font.py font1.ttf font2.ttf;

Add a METADATA.pb to a family directory

python add_font.py ../ofl/newfamily;

Sanity check a family directory:

python sanity_check.py --repair_script=/tmp/fix.py ../ofl/josefinsans;
python sanity_check.py --repair_script=/tmp/fix.py --fix_type=fsSelection ../ufl;

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.

Dependencies

To use compare_font.py and sanity_check.py you will need:

These can be installed with pip:

sudo easy_install pip;
pip install --user google-apputils protobuf git+git://github.com/behdad/fonttools.git;

License

The tools and files under this directory are available under the Apache License v2.0, for details see LICENSE.txt