<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getFontName(self, names, default="helvetica"):
 """ Name of a font """

        # print names, self.fontList
        if type(names) is not ListType:
            if type(names) not in six.string_types:
                names = str(names)
            names = names.strip().split(",")
        for name in names:
            if type(name) not in six.string_types:
                name = str(name)
            font = self.fontList.get(name.strip().lower(), None)
            if font is not None:
                return font
        return self.fontList.get(default, None)