Beispiel #1
0
def update_fonts():
    FAMILIES_LIST[:] = []
    FAMILIES_DICT.clear()
    font_map = _libpango.get_fontmap()
    for item in font_map:
        font_name = item[0]
        font_faces = item[1]
        if font_faces:
            FAMILIES_LIST.append(font_name)
            FAMILIES_DICT[font_name] = list(font_faces)
    FAMILIES_LIST.sort()
Beispiel #2
0
def update_fonts():
    FAMILIES_LIST[:] = []
    FAMILIES_DICT.clear()
    font_map = _libpango.get_fontmap()
    for item in font_map:
        font_name = item[0]
        font_faces = item[1]
        if font_faces:
            FAMILIES_LIST.append(font_name)
            FAMILIES_DICT[font_name] = list(font_faces)
    FAMILIES_LIST.sort()