Setting Fonts on Mac OS X/wxWidgets 2.6.1

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Earned some good credits
Earned some good credits
Posts: 145
Joined: Thu Feb 03, 2005 4:46 pm

Setting Fonts on Mac OS X/wxWidgets 2.6.1

Post by cd_hodges » Wed Jul 20, 2005 5:13 pm

I'm writing a cross-platform app (Windows/Mac) and one of the main problems that I'm having is that the default fonts on the Mac are WAYYYYYY too big.

I'm looking for a way to set the default font for the application or even just a panel that contains other controls on it. There does not seem to be a simple way of doing this and so my code is starting to look like this:

Code: Select all

#ifdef __WXMAC__
   wxFont ff = GetFont();
   ff.SetPointSize(10);  //this makes the font smaller than the default
   //and so on with the rest of the controls on each panel
This gets old quick because I have to do this for EVERY single window,panel,dialog etc.. that I have and the project is quite large. Does ANYONE have any idea how to do this globally?


Christopher Hodges

Post Reply