diff options
22 files changed, 38 insertions, 0 deletions
diff --git a/hinted/Roboto-Light.ttf b/hinted/Roboto-Light.ttf Binary files differindex 76700cb..d540bf1 100644 --- a/hinted/Roboto-Light.ttf +++ b/hinted/Roboto-Light.ttf diff --git a/hinted/Roboto-Medium.ttf b/hinted/Roboto-Medium.ttf Binary files differindex fede2c7..24596ed 100644 --- a/hinted/Roboto-Medium.ttf +++ b/hinted/Roboto-Medium.ttf diff --git a/hinted/Roboto-Regular.ttf b/hinted/Roboto-Regular.ttf Binary files differindex a4abd95..c39ee2c 100644 --- a/hinted/Roboto-Regular.ttf +++ b/hinted/Roboto-Regular.ttf diff --git a/out/RobotoCondensedTTF/RobotoCondensed-Bold.ttf b/out/RobotoCondensedTTF/RobotoCondensed-Bold.ttf Binary files differindex 1079af6..79695ec 100644 --- a/out/RobotoCondensedTTF/RobotoCondensed-Bold.ttf +++ b/out/RobotoCondensedTTF/RobotoCondensed-Bold.ttf diff --git a/out/RobotoCondensedTTF/RobotoCondensed-BoldItalic.ttf b/out/RobotoCondensedTTF/RobotoCondensed-BoldItalic.ttf Binary files differindex e7f13c2..bfe3760 100644 --- a/out/RobotoCondensedTTF/RobotoCondensed-BoldItalic.ttf +++ b/out/RobotoCondensedTTF/RobotoCondensed-BoldItalic.ttf diff --git a/out/RobotoCondensedTTF/RobotoCondensed-Italic.ttf b/out/RobotoCondensedTTF/RobotoCondensed-Italic.ttf Binary files differindex 7fa0448..b86678a 100644 --- a/out/RobotoCondensedTTF/RobotoCondensed-Italic.ttf +++ b/out/RobotoCondensedTTF/RobotoCondensed-Italic.ttf diff --git a/out/RobotoCondensedTTF/RobotoCondensed-Light.ttf b/out/RobotoCondensedTTF/RobotoCondensed-Light.ttf Binary files differindex 96b75dd..a8ddf40 100644 --- a/out/RobotoCondensedTTF/RobotoCondensed-Light.ttf +++ b/out/RobotoCondensedTTF/RobotoCondensed-Light.ttf diff --git a/out/RobotoCondensedTTF/RobotoCondensed-LightItalic.ttf b/out/RobotoCondensedTTF/RobotoCondensed-LightItalic.ttf Binary files differindex 7a2c164..cde3ea4 100644 --- a/out/RobotoCondensedTTF/RobotoCondensed-LightItalic.ttf +++ b/out/RobotoCondensedTTF/RobotoCondensed-LightItalic.ttf diff --git a/out/RobotoCondensedTTF/RobotoCondensed-Regular.ttf b/out/RobotoCondensedTTF/RobotoCondensed-Regular.ttf Binary files differindex 734cc40..bb8a10c 100644 --- a/out/RobotoCondensedTTF/RobotoCondensed-Regular.ttf +++ b/out/RobotoCondensedTTF/RobotoCondensed-Regular.ttf diff --git a/out/RobotoTTF/Roboto-Black.ttf b/out/RobotoTTF/Roboto-Black.ttf Binary files differindex 2cdbe43..755f3d6 100644 --- a/out/RobotoTTF/Roboto-Black.ttf +++ b/out/RobotoTTF/Roboto-Black.ttf diff --git a/out/RobotoTTF/Roboto-BlackItalic.ttf b/out/RobotoTTF/Roboto-BlackItalic.ttf Binary files differindex 9086791..3ebdc7d 100644 --- a/out/RobotoTTF/Roboto-BlackItalic.ttf +++ b/out/RobotoTTF/Roboto-BlackItalic.ttf diff --git a/out/RobotoTTF/Roboto-Bold.ttf b/out/RobotoTTF/Roboto-Bold.ttf Binary files differindex 15c9b4e..baaf1ff 100644 --- a/out/RobotoTTF/Roboto-Bold.ttf +++ b/out/RobotoTTF/Roboto-Bold.ttf diff --git a/out/RobotoTTF/Roboto-BoldItalic.ttf b/out/RobotoTTF/Roboto-BoldItalic.ttf Binary files differindex a0abf30..11542e5 100644 --- a/out/RobotoTTF/Roboto-BoldItalic.ttf +++ b/out/RobotoTTF/Roboto-BoldItalic.ttf diff --git a/out/RobotoTTF/Roboto-Italic.ttf b/out/RobotoTTF/Roboto-Italic.ttf Binary files differindex 67b5394..9e85cc8 100644 --- a/out/RobotoTTF/Roboto-Italic.ttf +++ b/out/RobotoTTF/Roboto-Italic.ttf diff --git a/out/RobotoTTF/Roboto-Light.ttf b/out/RobotoTTF/Roboto-Light.ttf Binary files differindex d9fb64a..1ff5ade 100644 --- a/out/RobotoTTF/Roboto-Light.ttf +++ b/out/RobotoTTF/Roboto-Light.ttf diff --git a/out/RobotoTTF/Roboto-LightItalic.ttf b/out/RobotoTTF/Roboto-LightItalic.ttf Binary files differindex 1fd1d31..36d11fc 100644 --- a/out/RobotoTTF/Roboto-LightItalic.ttf +++ b/out/RobotoTTF/Roboto-LightItalic.ttf diff --git a/out/RobotoTTF/Roboto-Medium.ttf b/out/RobotoTTF/Roboto-Medium.ttf Binary files differindex c63c115..2ea57c3 100644 --- a/out/RobotoTTF/Roboto-Medium.ttf +++ b/out/RobotoTTF/Roboto-Medium.ttf diff --git a/out/RobotoTTF/Roboto-MediumItalic.ttf b/out/RobotoTTF/Roboto-MediumItalic.ttf Binary files differindex cd7c835..6ad7902 100644 --- a/out/RobotoTTF/Roboto-MediumItalic.ttf +++ b/out/RobotoTTF/Roboto-MediumItalic.ttf diff --git a/out/RobotoTTF/Roboto-Regular.ttf b/out/RobotoTTF/Roboto-Regular.ttf Binary files differindex 9cb4a5a..66ce900 100644 --- a/out/RobotoTTF/Roboto-Regular.ttf +++ b/out/RobotoTTF/Roboto-Regular.ttf diff --git a/out/RobotoTTF/Roboto-Thin.ttf b/out/RobotoTTF/Roboto-Thin.ttf Binary files differindex f02f100..6a43931 100644 --- a/out/RobotoTTF/Roboto-Thin.ttf +++ b/out/RobotoTTF/Roboto-Thin.ttf diff --git a/out/RobotoTTF/Roboto-ThinItalic.ttf b/out/RobotoTTF/Roboto-ThinItalic.ttf Binary files differindex 12a2ce0..379b0fa 100644 --- a/out/RobotoTTF/Roboto-ThinItalic.ttf +++ b/out/RobotoTTF/Roboto-ThinItalic.ttf diff --git a/scripts/final_touchup.py b/scripts/final_touchup.py new file mode 100755 index 0000000..5e02070 --- /dev/null +++ b/scripts/final_touchup.py @@ -0,0 +1,38 @@ +#!/usr/bin/python +"""Post-build touch ups for Roboto.""" + +from os import path +import sys + +from fontTools import ttLib + + +def correct_font(source_font_name, target_font_name): + """Corrects metrics and other meta information.""" + font = ttLib.TTFont(source_font_name) + + head = font['head'] + head.yMax = 2163 + head.yMin = -555 + + hhea = font['hhea'] + hhea.ascent = 1900 + hhea.descent = -500 + hhea.lineGap = 0 + + basename = path.basename(source_font_name) + bold = ('Bold' in basename) or ('Black' in basename) + italic = 'Italic' in basename + head.macStyle = (italic << 1) | bold + + font.save(target_font_name) + + +def main(argv): + """Correct all fonts specified in the command line.""" + for font_name in argv[1:]: + correct_font(font_name, path.basename(font_name)) + + +if __name__ == "__main__": + main(sys.argv) |