aosp12/frameworks/layoutlib/rename_font
hcl 7be3fd486c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
..
README init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
Roboto-Regular.ttf init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
build_font.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
build_font_single.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
test.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00

README

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.