summaryrefslogtreecommitdiff
path: root/scripts/touchup_for_web.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-12-11 12:04:37 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-12-11 12:11:57 -0800
commitf9116ecf24f80e3c9161cd5189e8e9a90c03e908 (patch)
tree11d169d70bdb4a49dd2d0469c0a000683407e674 /scripts/touchup_for_web.py
parenta40611066facdeab2ba726411d8f1acbf907132b (diff)
Don't set Black weight as bold outside of Android
There's no documented reason why we were doing this before, so let's output these fonts for now and see if they work on other platforms. Android can come next.
Diffstat (limited to 'scripts/touchup_for_web.py')
-rwxr-xr-xscripts/touchup_for_web.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/touchup_for_web.py b/scripts/touchup_for_web.py
index 3e29e58..7879d9e 100755
--- a/scripts/touchup_for_web.py
+++ b/scripts/touchup_for_web.py
@@ -47,12 +47,6 @@ def apply_web_specific_fixes(font, family_name):
family_name += ' Condensed'
full_name = family_name + ' ' + subfamily_name
- # macStyle
- bold = subfamily_name.startswith(('Bold', 'Black'))
- italic = subfamily_name.endswith('Italic')
- macStyle = (italic << 1) | bold
- font['head'].macStyle = macStyle
-
# Family, subfamily names
font_data.set_name_record(font, 16, family_name)
style_map = ['Regular', 'Bold', 'Italic', 'Bold Italic']