X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23d2edff3505385801313910ece449bdb959f0f1..bfc908104996c9b856fcb61b2f084a6025402d61:/include/wx/font.h diff --git a/include/wx/font.h b/include/wx/font.h index 68799b2c5b..44758313e0 100644 --- a/include/wx/font.h +++ b/include/wx/font.h @@ -171,7 +171,8 @@ public: virtual void SetFaceName( const wxString& faceName ) = 0; virtual void SetUnderlined( bool underlined ) = 0; virtual void SetEncoding(wxFontEncoding encoding) = 0; - virtual void SetNativeFontInfo(const wxNativeFontInfo& info); + void SetNativeFontInfo(const wxNativeFontInfo& info) + { DoSetNativeFontInfo(info); } void SetNativeFontInfo(const wxString& info); void SetNativeFontInfoUserDesc(const wxString& info); @@ -195,7 +196,10 @@ protected: // get the internal data wxFontRefData *GetFontData() const { return (wxFontRefData *)m_refData; } - + + // the function called by both overloads of SetNativeFontInfo() + virtual void DoSetNativeFontInfo(const wxNativeFontInfo& info); + private: // the currently default encoding: by default, it's the default system // encoding, but may be changed by the application using