예제 #1
0
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
예제 #2
0
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()
        ]))