]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/font.cpp
Removed debug comments
[wxWidgets.git] / src / os2 / font.cpp
index 0b60d983789bd21908894edced075e81b5eef4f6..d33d991d89a827520a65ab64a66223b235e5eeaa 100644 (file)
@@ -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