From: David Webster Date: Mon, 18 Dec 2000 20:04:50 +0000 (+0000) Subject: Update to allow new wxNativeFontInfo stuff to compile X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/377771d93a85a645eac8b41355983e3934fbcadf Update to allow new wxNativeFontInfo stuff to compile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/os2/font.h b/include/wx/os2/font.h index 410e0bc200..94ec7c7bbb 100644 --- a/include/wx/os2/font.h +++ b/include/wx/os2/font.h @@ -42,6 +42,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