X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/377771d93a85a645eac8b41355983e3934fbcadf..7eb0e0375fcb0f8d7aab10ef14efe4fca19f681e:/include/wx/os2/font.h diff --git a/include/wx/os2/font.h b/include/wx/os2/font.h index 94ec7c7bbb..a40017aec1 100644 --- a/include/wx/os2/font.h +++ b/include/wx/os2/font.h @@ -14,6 +14,7 @@ #include "wx/gdiobj.h" #include "wx/os2/private.h" +#include "wx/fontutil.h" WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; @@ -42,19 +43,7 @@ public: (void)Create(nSize, nFamily, nStyle, nWeight, bUnderlined, rsFace, vEncoding); } - wxFont(const wxNativeFontInfo& rInfo) - { - Init(); - - (void)Create( rInfo.pointSize - ,rInfo.family - ,rInfo.style - ,rInfo.weight - ,rInfo.underlined - ,rInfo.faceName - ,rInfo.encoding - ); - } + wxFont(const wxNativeFontInfo& rInfo); bool Create( int nSize ,int nFamily @@ -106,6 +95,7 @@ public: virtual WXHANDLE GetResourceHandle(void); virtual bool FreeResource(bool bForce = FALSE); + WXHFONT GetHFONT(void) const; protected: // // Common part of all ctors