diff options
| author | Deepanshu Gupta <deepanshu@google.com> | 2014-06-27 18:39:32 -0700 |
|---|---|---|
| committer | Deepanshu Gupta <deepanshu@google.com> | 2014-07-01 17:13:32 -0700 |
| commit | 7ea293bc6a31c5b1bf3b2663376a39dc3a79b671 (patch) | |
| tree | 05ca60b9c38c0a2f983c3d1d76444550c263960e /tools/layoutlib/rename_font/test.py | |
| parent | 48d41ea0bee27147273fec6d753332c181861c77 (diff) | |
| download | frameworks_base-7ea293bc6a31c5b1bf3b2663376a39dc3a79b671.zip frameworks_base-7ea293bc6a31c5b1bf3b2663376a39dc3a79b671.tar.gz frameworks_base-7ea293bc6a31c5b1bf3b2663376a39dc3a79b671.tar.bz2 | |
Change font family name.
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
Diffstat (limited to 'tools/layoutlib/rename_font/test.py')
| -rwxr-xr-x | tools/layoutlib/rename_font/test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/layoutlib/rename_font/test.py b/tools/layoutlib/rename_font/test.py index b0b69d8..2ffddf4 100755 --- a/tools/layoutlib/rename_font/test.py +++ b/tools/layoutlib/rename_font/test.py @@ -33,10 +33,11 @@ class MyTest(unittest.TestCase): tree = etree.parse(ttx_path) root = tree.getroot() name_tag = root.find('name') - [f_name, f_version] = build_font.get_font_info(name_tag) + fonts = build_font.get_font_info(name_tag) shutil.rmtree(srcdir) shutil.rmtree(destdir) - self.assertEqual(f_name, "Roboto-Regular1200310") + self.assertEqual(fonts[0].family, "Roboto1200310") + self.assertEqual(fonts[0].fullname, "Roboto1200310 Regular") |
