# tkinter_font.py3 # Import the tkinter module import tkinter # Creating the GUI window. root = tkinter.Tk() root.title("tkinter_font.py3") C = tkinter.Canvas(root, bg="white", width=400, height=240) # x coordinate is center of text, y coordinate is bottom of text C.create_text(200,40, text="normal text, no font", fill='black') C.create_text(200,80,text='more text',fill='brown',font=('courrier',20)) C.create_text(200,100,text='courrier 20',fill='brown') C.create_text(200,140,text='some text',fill='red',font=('arial',20,'bold')) C.create_text(200,160,text='arial 20 bold',fill='red') C.create_text(200,200,text='other text',fill='orange',font=('times',24,'italic')) C.create_text(200,220,text='times 24 italic',fill='orange') C.pack() root.mainloop()