/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
-#ifndef WX_PRECOMP
-#endif
#include "wx/settings.h"
-#include "wx/gdicmn.h"
-#include "wx/utils.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/utils.h"
+ #include "wx/gdicmn.h"
+#endif
#include "wx/cocoa/autorelease.h"
+#include "wx/cocoa/private/fontfactory.h"
#import <AppKit/NSColor.h>
+#import <AppKit/NSFont.h>
// ----------------------------------------------------------------------------
// wxSystemSettingsNative
wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
{
-// return a nonworking font object, crash from wxInitializeStockObjects
- return wxFont();
+ // Return the system font for now
+ { wxAutoNSAutoreleasePool pool;
+ return wxCocoaFontFactory::InstanceForNSFont([NSFont systemFontOfSize:0.0], false);
+ }
switch (index)
{
case wxSYS_ANSI_VAR_FONT :