def __repr__(self):
    return ("<Font '%s'>" % (self.postScriptName or self.name.getText() or 'undefined'))
def __repr__(self):
    return ("<Font '%s'>" % (self.postScriptName or self.name.getText() or 'undefined'))