custom font tkinter code example
Example 1: add font to the label in window tkinter
import tkinter
window = tkinter.Tk()
window.title('my first GUI program')
window.minsize(width=600, height=500)
my_label = tkinter.Label(text='I am a Label', font=('Cursive', 24, 'bold'))
my_label.pack()
window.mainloop()
Example 2: how to change font in tkinter
import tkinter.font as font
myFont = font.Font(family='Helvetica')
button = Button(parent, font=myFont)
button = Button(parent)
button['font'] = myFont
Example 3: font in tkinter
import tkinter.font as TkFont
font = tkFont.Font ( option, ... )
helv36 = tkFont.Font(family="Helvetica",size=36,weight="bold")