Return face name from wxFont::GetNativeFontInfo() under MSW.

Retrieve the face name from the system if we don't have it already before
returning the native font info.

This fixes the currently failing font unit tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-11-26 02:33:53 +00:00
parent 3515776ea5
commit a77c05ea22

View File

@@ -289,7 +289,14 @@ public:
}
const wxNativeFontInfo& GetNativeFontInfo() const
{ return m_nativeFontInfo; }
{
// ensure that we have a valid face name in our font information:
// GetFaceName() will try to retrieve it from our HFONT and save it if
// it was successful
(void)GetFaceName();
return m_nativeFontInfo;
}
void SetNativeFontInfo(const wxNativeFontInfo& nativeFontInfo)
{