Deepanshu Gupta d654b6f981 Be lenient in accepting version strings.
Don't throw exceptions for malformed version strings in font files, and
try to rename the font as is.

Change-Id: Ib4f74e68593abb5b551fbcb049484efc925a3d6e
2015-04-06 12:52:18 -07:00
..

This tool is used to rename the PS name encoded inside the ttf font that we ship
with the SDK. There is bug in Java that returns incorrect results for
java.awt.Font#layoutGlyphVector() if two fonts with same name but differnt
versions are loaded. As a workaround, we rename all the fonts that we ship with
the SDK by appending the font version to its name.


The build_font.py copies all files from input_dir to output_dir while renaming
the font files (*.ttf) in the process.