diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2015-01-07 13:31:02 -0800 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-16 12:16:24 -0700 |
commit | 403041dcfae9f364038c3dcc034238d2ea1ddafc (patch) | |
tree | 30db3ff9f10bac4c1fd2e721ddabbfab93fecd1c /scripts/touchup_for_android.py | |
parent | f78193176ea782adab14ca4bda517eeb699e571b (diff) |
Move updating version numbers to temporar_touchups.
This is so that both Adroid and Web targets could reuse it.
Diffstat (limited to 'scripts/touchup_for_android.py')
-rwxr-xr-x | scripts/touchup_for_android.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/scripts/touchup_for_android.py b/scripts/touchup_for_android.py index c8b844a..76a39ae 100755 --- a/scripts/touchup_for_android.py +++ b/scripts/touchup_for_android.py @@ -1,14 +1,10 @@ #!/usr/bin/python """Post-build changes for Roboto for Android.""" -import collections -import os -from os import path import sys from fontTools import ttLib from nototools import font_data -from nototools import unicode_data import temporary_touchups @@ -25,30 +21,6 @@ def drop_lookup(table, lookup_number): feature.Feature.LookupCount -= 1 -def apply_temporary_fixes(font): - """Apply some temporary fixes. - """ - # Fix version number from buildnumber.txt - # https://code.google.com/a/google.com/p/roboto/issues/detail?id=50 - from datetime import date - - build_number_txt = path.join( - path.dirname(__file__), os.pardir, 'res', 'buildnumber.txt') - build_number = open(build_number_txt).read().strip() - - version_record = 'Version 2.0%s; %d' % (build_number, date.today().year) - - for record in font['name'].names: - if record.nameID == 5: - if record.platformID == 1 and record.platEncID == 0: # MacRoman - record.string = version_record - elif record.platformID == 3 and record.platEncID == 1: - # Windows UCS-2 - record.string = version_record.encode('UTF-16BE') - else: - assert False - - def apply_android_specific_fixes(font): """Apply fixes needed for Android.""" # Set ascent, descent, and lineGap values to Android K values |