Search code examples
pythontkintertruetype

Loading a TrueType font file in Tkinter without installing it in fonts folder


How do I load a TrueType font file in Tkinter without installing it in the font directories and beside the running script, like for example in Windows/Linux?

I'm trying to create a script with the fonts not need to be installed separately and already included in my main package.


Solution

  • You cannot dynamically load fonts with tkinter.