Get list of all available fonts in Tkinter.

import tkinter
import tkinter.font

root=tkinter.Tk()
fontlist=list(tkinter.font.families())
print(fontlist)
root.mainloop()

This is how you Get the list of all available fonts in Tkinter just by executing a few lines of code.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top