File tree Expand file tree Collapse file tree
tools/layoutlib/rename_font Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020OpenType fonts (*.otf) are not currently supported. They are copied to the destination without renaming.
2121XML files are also copied in case they are passed there by mistake.
2222
23- Usage: build_font .py /path/to/input_font.ttf /path/to/output_font.ttf
23+ Usage: build_font_single .py /path/to/input_font.ttf /path/to/output_font.ttf
2424
2525"""
2626
@@ -67,7 +67,8 @@ class InvalidFontException(Exception):
6767
6868def main (argv ):
6969 if len (argv ) < 2 :
70- sys .exit ('Usage: build_font.py /path/to/input/font.ttf /path/to/out/font.ttf' )
70+ print 'Incorrect usage: ' + str (argv )
71+ sys .exit ('Usage: build_font_single.py /path/to/input/font.ttf /path/to/out/font.ttf' )
7172 dest_path = argv [- 1 ]
7273 input_path = argv [0 ]
7374 extension = os .path .splitext (input_path )[1 ].lower ()
You can’t perform that action at this time.
0 commit comments