From 40c8fc1002d68e36c48a2f934ba597a43b67a27d Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 17 Apr 2019 11:13:08 +0100 Subject: [PATCH] Adds script for converting otf to ttf --- bin/otf2ttf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/otf2ttf diff --git a/bin/otf2ttf b/bin/otf2ttf new file mode 100755 index 00000000..a67ede8f --- /dev/null +++ b/bin/otf2ttf @@ -0,0 +1,14 @@ +#!/usr/bin/env python +import fontforge as ff +import sys + +args = sys.argv[1:] + +if args[0] == '--help': + print("otf2ttf ") +else: + otf = args[0] + ttf = otf.replace('otf','ttf') + print( otf + ' => ' + ttf ) + f = ff.open( otf ) + f.generate( ttf )