/////////////////////////////////////////////////////////////////////////////
-// Name: font.h
+// Name: wx/osx/font.h
// Purpose: wxFont class
// Author: Julian Smart
// Modified by:
wxOSX_SYSTEM_FONT_MINI,
wxOSX_SYSTEM_FONT_MINI_BOLD,
wxOSX_SYSTEM_FONT_LABELS,
- wxOSX_SYSTEM_FONT_VIEWS,
+ wxOSX_SYSTEM_FONT_VIEWS
};
// ctors and such
wxFont() { }
+ wxFont(const wxFontInfo& info)
+ {
+ Create(info.GetPointSize(),
+ info.GetFamily(),
+ info.GetStyle(),
+ info.GetWeight(),
+ info.IsUnderlined(),
+ info.GetFaceName(),
+ info.GetEncoding());
+
+ if ( info.IsUsingSizeInPixels() )
+ SetPixelSize(info.GetPixelSize());
+ }
+
wxFont( wxOSXSystemFont systemFont );
#if wxOSX_USE_COCOA
virtual wxFontEncoding GetEncoding() const;
virtual const wxNativeFontInfo *GetNativeFontInfo() const;
+ virtual bool IsFixedWidth() const;
+
virtual void SetPointSize(int pointSize);
virtual void SetFamily(wxFontFamily family);
virtual void SetStyle(wxFontStyle style);