/////////////////////////////////////////////////////////////////////////////
-// Name: font.h
+// Name: wx/mgl/font.h
// Author: Vaclav Slavik
// Id: $Id$
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
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,
// implement base class pure virtuals
virtual int GetPointSize() const;
- virtual wxFontFamily GetFamily() const;
virtual wxFontStyle GetStyle() const;
virtual wxFontWeight GetWeight() const;
virtual wxString GetFaceName() const;
virtual void SetUnderlined(bool underlined);
virtual void SetEncoding(wxFontEncoding encoding);
- WXDECLARE_COMPAT_SETTERS
-
- // Unofficial API, don't use
- virtual void SetNoAntiAliasing(bool no = true);
- virtual bool GetNoAntiAliasing() const;
+ wxDECLARE_COMMON_FONT_METHODS();
struct font_t *GetMGLfont_t(float scale, bool antialiased);
virtual wxGDIRefData *CreateGDIRefData() const;
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
+ virtual wxFontFamily DoGetFamily() const;
+
private:
DECLARE_DYNAMIC_CLASS(wxFont)
};