def _instantiateFont(self, path):
        """ Return a instance of a font object with all the given subclasses"""
        try:
            return self.fontClass(path,
                layerClass=self.layerClass,
                libClass=self.libClass,
                kerningClass=self.kerningClass,
                groupsClass=self.groupsClass,
                infoClass=self.infoClass,
                featuresClass=self.featuresClass,
                glyphClass=self.glyphClass,
                glyphContourClass=self.glyphContourClass,
                glyphPointClass=self.glyphPointClass,
                glyphComponentClass=self.glyphComponentClass,
                glyphAnchorClass=self.glyphAnchorClass)
        except TypeError:
            # if our fontClass doesnt support all the additional classes
            return self.fontClass(path)
def _instantiateFont ( self , path ) : try : return self . fontClass ( path , layerClass = self . layerClass , libClass = self . libClass , kerningClass = self . kerningClass , groupsClass = self . groupsClass , infoClass = self . infoClass , featuresClass = self . featuresClass , glyphClass = self . glyphClass , glyphContourClass = self . glyphContourClass , glyphPointClass = self . glyphPointClass , glyphComponentClass = self . glyphComponentClass , glyphAnchorClass = self . glyphAnchorClass ) except TypeError : return self . fontClass ( path )
Return a instance of a font object with all the given subclasses