summaryrefslogtreecommitdiff
path: root/scripts/touchup_for_android.py
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-01-08 00:33:56 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:25 -0700
commiteaece2cb0d1aa84b7e3316cd2dcd9597c3ff07e8 (patch)
treeab16b71e2fd2ba1936b6768cf94e2e19ec2b5e22 /scripts/touchup_for_android.py
parent07f342a2690558b8f4ce3d1bbb545c6ef3c320d1 (diff)
More refactoring of touchup and test scripts.
Diffstat (limited to 'scripts/touchup_for_android.py')
-rwxr-xr-xscripts/touchup_for_android.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/touchup_for_android.py b/scripts/touchup_for_android.py
index 76a39ae..d811303 100755
--- a/scripts/touchup_for_android.py
+++ b/scripts/touchup_for_android.py
@@ -9,26 +9,8 @@ from nototools import font_data
import temporary_touchups
-def drop_lookup(table, lookup_number):
- """Drop a lookup from an OpenType table by number.
-
- Actually remove pointers from features to the lookup, which should be less
- intrusive.
- """
- for feature in table.table.FeatureList.FeatureRecord:
- if lookup_number in feature.Feature.LookupListIndex:
- feature.Feature.LookupListIndex.remove(lookup_number)
- feature.Feature.LookupCount -= 1
-
-
def apply_android_specific_fixes(font):
"""Apply fixes needed for Android."""
- # Set ascent, descent, and lineGap values to Android K values
- hhea = font['hhea']
- hhea.ascent = 1900
- hhea.descent = -500
- hhea.lineGap = 0
-
# Remove tab, combining keycap, and the arrows from the cmap table.
#
# Arrows are removed to maximize consistency of arrows, since the rest