How to use the fontmake.font_project.FontProject.__init__ function in fontmake

To help you get started, we’ve selected a few fontmake examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / roboto / scripts / roboto_font_project.py View on Github external
def __init__(self, basedir):
        FontProject.__init__(self)
        config = ConfigParser.RawConfigParser()
        config.read(os.path.join(basedir, 'res', 'roboto.cfg'))
        self.no_italic = config.get('glyphs', 'noitalic').split()
        self.less_italic = config.get('glyphs', 'lessitalic').split()
        stem_widths = config.get('params', 'stem_widths').splitlines()
        self.stem_widths = dict(l.split() for l in stem_widths if l)