e30d3fdd04
During the SDK build, rename the Font's Family name and not just the PS Name. Updating the PS name doesn't work. Change-Id: I997b5eec9f493ce97b95c33101ee426e773890c1 (cherry picked from commit 24f58dbce27f8fa56de992d0c03168a88ae80bad)
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.