diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-09-25 10:55:11 -0700 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-09-28 13:31:25 -0700 |
commit | ca851298519eb19c3c89cc2b3a6c0770b04257a4 (patch) | |
tree | c39438c5e2c4394b0cae06807edc3dc3b84328bc /scripts/temporary_touchups.py | |
parent | 3ed96d26a9ce30200c3b8c2bece4101104c6b44e (diff) |
Test that name and style are generally compatible.
Changes to the TestNames unit tests reflect the issues raised in the
link added to common_tests.py. Also generally account for code changed
in nototools.
Diffstat (limited to 'scripts/temporary_touchups.py')
-rw-r--r-- | scripts/temporary_touchups.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/temporary_touchups.py b/scripts/temporary_touchups.py index 9997adc..8953b64 100644 --- a/scripts/temporary_touchups.py +++ b/scripts/temporary_touchups.py @@ -16,6 +16,7 @@ from datetime import date from nototools import font_data +from nototools import noto_fonts import roboto_data @@ -23,8 +24,8 @@ def apply_temporary_fixes(font): """Apply some temporary fixes.""" # Fix usWeight: font_name = font_data.font_name(font) - weight = roboto_data.extract_weight_name(font_name) - weight_number = roboto_data.WEIGHTS[weight] + weight = noto_fonts.parse_weight(font_name) + weight_number = noto_fonts.WEIGHTS[weight] font['OS/2'].usWeightClass = weight_number # Set ascent, descent, and lineGap values to Android K values |