We now recurse into directories to find all fonts. This change is needed to prevent having to list all fonts in external/google-fonts individually. As a side effect, we now only copy xml files over. Change-Id: Ifdea3b8451878c2449ac7c5e17ef3d1b00d1b955 (cherry picked from commit c6364fd90de1600526d3431ce0740b6b856e48f0)
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.