// Author: David Elliott
// Modified by:
// Created: 2005/01/11
-// RCS-ID: $Id$
// Copyright: (c) 2005 David Elliott
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#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 :