Code reposted from this forum post. MCVE(note that you have to put some TrueType font in your working directory and update "Custom" to reflect its name): #include <wx/wxprec.h> #include ...