summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-09-28 16:49:17 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-09-28 16:49:17 -0700
commit7c75cdb635d6f4b2e0a8d29fc9e5888645690bcb (patch)
treeb2ed6eb083ff40e0f38e3e3f37bbd973ebaabc46 /scripts
parentfd9ad46b4758c6e271d8c1b6a8400411f70d7fc2 (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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/common_tests.py2
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)