Hello, is there any way that i can upload custom fonts to use with tkinter in repl.it?
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()
@SixBeeps Ah, thanks
@earwarmers I tried this, but it doesn't work. It just loads some generic font instead.
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?
@SixBeeps Ah, thanks
@earwarmers I tried this, but it doesn't work. It just loads some generic font instead.