def valid(self):
    if (not self.value):
        return True
    if (self.value not in FONTENCODINGS):
        return ("Encoding '%s' is unknown. Known are: %s" % (self.value, FONTENCODINGS))
    return True
def valid(self):
    if (not self.value):
        return True
    if (self.value not in FONTENCODINGS):
        return ("Encoding '%s' is unknown. Known are: %s" % (self.value, FONTENCODINGS))
    return True