Upload fonts for use with tkinter?
Hello, is there any way that i can upload custom fonts to use with tkinter in repl.it?
Answered by SixBeeps [earned 5 cycles]
Yeah, if you know where the TTF is you should just be able to up load it and use it as normal. Something like this?
import pyglet,tkinter pyglet.font.add_file('file.ttf') root = tkinter.Tk() MyLabel = tkinter.Label(root,text="test",font=('font name',25)) MyLabel.pack() root.mainloop()