def __init__(self, settings = None): if settings is None: self.settings = getCommandLineSettings() else: self.settings = settings self.configure() self.initMetrics()
'311.5,0', # A '0x61', '253.0,0', # a '0x45', '230,0', # E '0x65', '162,0', # e #Base Glyph: L (L, 0x4C) #D, 0x44) # d (d, 0x64) # '--top-join-centers 0x60 261', ) print 'pseudo_argv', ' '.join(pseudo_argv) # d with caron is super wrong. # should i use dotless i? settings = getCommandLineSettings(*pseudo_argv) #settings = getCommandLineSettings() #settings.ufo_src_path = os.path.abspath(os.path.join('..', '..', 'data-ignore', 'theleagueof-league-gothic-4f9ff8d', 'source', 'League Gothic.ufo')) #settings.ufo_dst_path = os.path.abspath(os.path.join('..', '..', 'out', 'League Gothic.ufo')) #settings.log_path = os.path.abspath(os.path.join('..', '..', 'logs')) #settings.otf_dst = os.path.abspath(os.path.join('..', '..', 'out', 'League Gothic.otf')) FontInterpolator(settings).process() print print 'complete.'
print 'knownBaseGlyphs', sorted(self.knownBaseGlyphs) print 'knownDiacriticalGlyphs', sorted(self.knownDiacriticalGlyphs) print 'unknownCompoundGlyphs', sorted(self.unknownCompoundGlyphs) print 'knownCompoundGlyphs', sorted(self.knownCompoundGlyphs) print 'existingCompoundGlyphs', [hex(glyph) for glyph in sorted(self.existingCompoundGlyphs)] print print 'unknownBaseGlyphs', len(self.unknownBaseGlyphs) print 'unknownDiacriticalGlyphs', len(self.unknownDiacriticalGlyphs) print 'knownBaseGlyphs', len(self.knownBaseGlyphs) print 'knownDiacriticalGlyphs', len(self.knownDiacriticalGlyphs) print 'unknownCompoundGlyphs', len(self.unknownCompoundGlyphs) print 'knownCompoundGlyphs', len(self.knownCompoundGlyphs) print 'existingCompoundGlyphs', len(self.existingCompoundGlyphs) if __name__ == "__main__": import sys print 'sys.argv', sys.argv settings = getCommandLineSettings() print 'settings', settings FontInterpolator(settings).process() print print 'complete.'
'--tail-join-centers', '0xAF', '260.0', # ogonek '0x41', '311.5,0', # A '0x61', '253.0,0', # a '0x45', '230,0', # E '0x65', '162,0', # e #Base Glyph: L (L, 0x4C) #D, 0x44) # d (d, 0x64) # '--top-join-centers 0x60 261', ) print 'pseudo_argv', ' '.join(pseudo_argv) # d with caron is super wrong. # should i use dotless i? settings = getCommandLineSettings(*pseudo_argv) #settings = getCommandLineSettings() #settings.ufo_src_path = os.path.abspath(os.path.join('..', '..', 'data-ignore', 'theleagueof-league-gothic-4f9ff8d', 'source', 'League Gothic.ufo')) #settings.ufo_dst_path = os.path.abspath(os.path.join('..', '..', 'out', 'League Gothic.ufo')) #settings.log_path = os.path.abspath(os.path.join('..', '..', 'logs')) #settings.otf_dst = os.path.abspath(os.path.join('..', '..', 'out', 'League Gothic.otf')) FontInterpolator(settings).process() print print 'complete.'