def get_font_list(): # from someone on the forum, i think @omz UIFont = ObjCClass('UIFont') lst = [str(font) for family in UIFont.familyNames() for font in UIFont.fontNamesForFamilyName_(family)] lst.sort() return lst
def get_font_list(): # from someone on the forum, i think @omz UIFont = ObjCClass('UIFont') return list( itertools.chain(*[ UIFont.fontNamesForFamilyName_(str(x)) for x in UIFont.familyNames() ]))