Exemple #1
0
    def __init__(self, *k, **kw) :
        if not 'id' in kw :
            kw['id'] = kw['test_suffix'] if 'test_suffix' in kw else kw['target'].lower().replace('.ttf','')
        self.volt_params = ""
        self.gdl_params = ""

        initobj(self, kw)
        if not isinstance(self.source, basestring) :
            self.legacy = self.source
            self.source = self.legacy.target
        self.fonts.append(self)
        if not hasattr(self, 'package') :
            self.package = package.Package.global_package()
        if self.package is not None :
            if hasattr(self.package, '__iter__') :
                for p in self.package : p.add_font(self)
            else :
                self.package.add_font(self)
        if not hasattr(self, 'ots_target') :
            self.ots_target = self.target[:-4] + "-ots.log"
        if not hasattr(self, 'fontlint_target') :
            self.fontlint_target = self.target[:-4] + "-fontlint.log"
        if not hasattr(self, 'pyfontaine_target') :
            self.pyfontaine_target = self.target[:-4] + "-pyfontaine.log"
        self._isbuilt = False
Exemple #2
0
 def __init__(self, src, name, dspace, *k, **kw):
     self.target = src
     self.name = name
     self.dspace = dspace
     if 'params' not in kw:
         kw['params'] = ''
     initobj(self, kw)
Exemple #3
0
 def __init__(self, tgt = None, **kw) :
     self.target = initval(tgt)
     initobj(self, kw)
Exemple #4
0
 def __init__(self, *reserved, **kw) :
     if not 'version' in kw : kw['version'] = 1.1
     #if not 'copyright' in kw : kw['copyright'] = getattr(Context.g_module, 'COPYRIGHT', '')
     self.reserve = reserved
     initobj(self, kw)
Exemple #5
0
 def __init__(self, src = None, *k, **kw) :
     self.source = initval(src)
     self.params = ''
     initobj(self, kw)
Exemple #6
0
 def __init__(self, src, *k, **kw) :
     self.target = src
     self.params = ''
     initobj(self, kw)