• Home
  • History
  • Annotate
  • only in /frameworks/base/tools/layoutlib/rename_font/
NameDateSize

..02-Jul-20154 KiB

build_font.py02-Jul-20156.9 KiB

build_font_single.py02-Jul-20156.5 KiB

README02-Jul-2015477

Roboto-Regular.ttf02-Jul-2015112.3 KiB

test.py02-Jul-20151.3 KiB

README

1This tool is used to rename the PS name encoded inside the ttf font that we ship
2with the SDK. There is bug in Java that returns incorrect results for
3java.awt.Font#layoutGlyphVector() if two fonts with same name but differnt
4versions are loaded. As a workaround, we rename all the fonts that we ship with
5the SDK by appending the font version to its name.
6
7
8The build_font.py copies all files from input_dir to output_dir while renaming
9the font files (*.ttf) in the process.
10