Search code examples
pythonpython-2.7wxpythonwxwidgets

wxPython adding custom font from file


First of all I drawing text with GraphicsContext and want to import and change font from file (ttf) which is in my project folder. Thank you


Solution

  • There is no functionality for adding fonts from external files in wxWidgets currently. Someone contributed code for doing this quite some time ago and it was almost ready for being merged, see http://trac.wxwidgets.org/ticket/13568, but this has never happened. If anybody needs this feature badly enough, I hope it might get done in the future.