diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-08-12 17:13:16 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-12 16:54:46 +0000 |
commit | 14690b0aa380697179eb0432939a8ce96e6561f0 (patch) | |
tree | e2095d9c3a8deb90b5bdbca7bebe4e5ed0ddbe8e /tools | |
parent | 556f941f55a51d85ca49cf1d78b0e042435df1a1 (diff) | |
parent | 93b1483e57df2ca5d3a2127e2049c484c5d6f060 (diff) | |
download | frameworks_base-14690b0aa380697179eb0432939a8ce96e6561f0.zip frameworks_base-14690b0aa380697179eb0432939a8ce96e6561f0.tar.gz frameworks_base-14690b0aa380697179eb0432939a8ce96e6561f0.tar.bz2 |
Merge "Improve error reporting when renaming fonts." into lmp-dev
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/layoutlib/rename_font/build_font_single.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/layoutlib/rename_font/build_font_single.py b/tools/layoutlib/rename_font/build_font_single.py index d648b04..5f7dad9 100755 --- a/tools/layoutlib/rename_font/build_font_single.py +++ b/tools/layoutlib/rename_font/build_font_single.py @@ -20,7 +20,7 @@ Rename the PS name of the input font. OpenType fonts (*.otf) are not currently supported. They are copied to the destination without renaming. XML files are also copied in case they are passed there by mistake. -Usage: build_font.py /path/to/input_font.ttf /path/to/output_font.ttf +Usage: build_font_single.py /path/to/input_font.ttf /path/to/output_font.ttf """ @@ -67,7 +67,8 @@ EXTENSIONS = ['.ttf', '.otf', '.xml'] def main(argv): if len(argv) < 2: - sys.exit('Usage: build_font.py /path/to/input/font.ttf /path/to/out/font.ttf') + print 'Incorrect usage: ' + str(argv) + sys.exit('Usage: build_font_single.py /path/to/input/font.ttf /path/to/out/font.ttf') dest_path = argv[-1] input_path = argv[0] extension = os.path.splitext(input_path)[1].lower() |