c57b410c8e
Create a script that will rename the PS name encoded in the font that is to be shipped with the SDK. This commit is a combination of 5 commits: e0660d31c256e02e5f5e2967508a7205d1f62f86 7e149f02c4e4403101e7e0e88af36cd4ab6f3554 66d3314301a8983c7070a15ea68daacc7300b7f2 c6364fd90de1600526d3431ce0740b6b856e48f0 2d8c52dc4502b8407705d5b6efe628cb657b20b4 Change-Id: I675a98db39fea4525e3673656af1764eb7e5bb96
10 lines
477 B
Plaintext
10 lines
477 B
Plaintext
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.
|