X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c14b6c3241d48d9cc36a2fd0aeab0ba330d96de..8908317871eb1e8aa48eaecf0d8d85d3a39f27d2:/include/wx/mgl/font.h diff --git a/include/wx/mgl/font.h b/include/wx/mgl/font.h index c372a219b7..6ef7f521df 100644 --- a/include/wx/mgl/font.h +++ b/include/wx/mgl/font.h @@ -61,6 +61,18 @@ public: 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, @@ -92,11 +104,7 @@ public: 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);