diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-09-28 16:49:17 -0700 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-09-28 16:49:17 -0700 |
commit | 7c75cdb635d6f4b2e0a8d29fc9e5888645690bcb (patch) | |
tree | b2ed6eb083ff40e0f38e3e3f37bbd973ebaabc46 | |
parent | fd9ad46b4758c6e271d8c1b6a8400411f70d7fc2 (diff) |
Re-add check for bold bit in Black weight.
Check removed in ca851298519eb19c3c89cc2b3a6c0770b04257a4.
It may or may not be standard practice, but Roboto has previously set
the bold bit for its Black weight so we'll keep it this way to avoid
regression.
-rw-r--r-- | scripts/common_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/common_tests.py b/scripts/common_tests.py index f771819..ca37557 100644 --- a/scripts/common_tests.py +++ b/scripts/common_tests.py @@ -98,7 +98,7 @@ class TestMetaInfo(FontTest): """ for font in self.fonts: font_name = font_data.font_name(font) - bold = 'Bold' in font_name + bold = ('Bold' in font_name) or ('Black' in font_name) italic = 'Italic' in font_name expected_mac_style = (italic << 1) | bold self.assertEqual(font['head'].macStyle, expected_mac_style) |