How to get a list of fonts that are available in the system?

    1 answer 1

    Using tkFont.families

    import Tkinter import tkFont root = Tkinter.Tk() list_fonts = list(tkFont.families()) 

    Using pygame.font.get_fonts

    Returns a list of all fonts available in the system. Font names will be set to lowercase, all spaces and punctuation marks are removed. This works on many systems, but some of them will return an empty list if they cannot find fonts.