wxFont() { }
// wxGTK-specific
- wxFont(const wxString& fontname)
+ wxFont(const wxString& nativeFontInfoString)
{
- Create(fontname);
+ Create(nativeFontInfoString);
}
wxFont(const wxNativeFontInfo& info);
Create(size, family, style, weight, underlined, face, encoding);
}
+ wxFont(const wxSize& pixelSize,
+ wxFontFamily family,
+ wxFontStyle style,
+ wxFontWeight weight,
+ bool underlined = false,
+ const wxString& face = wxEmptyString,
+ wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
+ {
+ Create(10, family, style, weight, underlined, face, encoding);
+ SetPixelSize(pixelSize);
+ }
+
bool Create(int size,
wxFontFamily family,
wxFontStyle style,
virtual void SetUnderlined( bool underlined );
virtual void SetEncoding(wxFontEncoding encoding);
- WXDECLARE_COMPAT_SETTERS
+ wxDECLARE_COMMON_FONT_METHODS();
virtual void SetNoAntiAliasing( bool no = true );
virtual bool GetNoAntiAliasing() const ;