X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e99762c031bf2c71af7f856c1d713bce0422acaa..5fd2b2c6ae663c7840f53e4cf087525602eaca7b:/include/wx/os2/font.h diff --git a/include/wx/os2/font.h b/include/wx/os2/font.h index 410e0bc200..bdbe4002c4 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,6 +43,20 @@ 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 + ); + } + bool Create( int nSize ,int nFamily ,int nStyle