X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fd2b2c6ae663c7840f53e4cf087525602eaca7b..41286fd1def19641be3ae5bb9666c84a1c0b5525:/src/os2/font.cpp diff --git a/src/os2/font.cpp b/src/os2/font.cpp index 0b60d98378..d33d991d89 100644 --- a/src/os2/font.cpp +++ b/src/os2/font.cpp @@ -161,6 +161,21 @@ wxFontRefData::~wxFontRefData() // wxFont // ---------------------------------------------------------------------------- +wxFont::wxFont(const wxNativeFontInfo& rInfo) + { + Init(); + + (void)Create( rInfo.pointSize + ,rInfo.family + ,rInfo.style + ,rInfo.weight + ,rInfo.underlined + ,rInfo.faceName + ,rInfo.encoding + ); + } + + void wxFont::Init() { if ( wxTheFontList ) @@ -355,7 +370,7 @@ bool wxFont::RealizeResource() vError = ::WinGetLastError(vHabmain); } - strcpy(zFacename, M_FONTDATA->m_vFattrs.szFacename); + M_FONTDATA->m_sFaceName = zFacename; if(::GpiCreateLogFont( M_FONTDATA->m_hPS ,NULL