diff --git a/src/msw/font.cpp b/src/msw/font.cpp index d995db91ac..376b8b3b87 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -279,7 +279,7 @@ protected: wxString GetMSWFaceName() const { ScreenHDC hdc; - SelectInHDC selectFont(hdc, m_hFont); + SelectInHDC selectFont(hdc, (HFONT)GetHFONT()); UINT otmSize = GetOutlineTextMetrics(hdc, 0, NULL); if ( !otmSize )