Beispiel #1
0
def main(args=None):
    opt = parse_options(args)
    if opt.glyphs is not None:
        if opt.instances is None:
            glyphslib.build_masters(opt.glyphs, opt.masters, italic=opt.italic)
        else:
            glyphslib.build_instances(opt.glyphs, opt.masters, opt.instances,
                                      italic=opt.italic)
Beispiel #2
0
    def build_instances(self, glyphs_path, is_italic=False):
        """Build instance UFOs from Glyphs source."""

        master_dir = self._output_dir('ufo')
        instance_dir = self._output_dir('ufo', is_instance=True)
        return build_instances(glyphs_path, master_dir, instance_dir,
                               is_italic)
Beispiel #3
0
    def build_instances(self, glyphs_path, is_italic=False):
        """Build instance UFOs from Glyphs source."""

        master_dir = self._output_dir('ufo')
        instance_dir = self._output_dir('ufo', is_instance=True)
        return build_instances(glyphs_path, master_dir, instance_dir, is_italic)