In wxGDIPlusContext::GetTextExtent(), return more accurate text height if possible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1504,6 +1504,8 @@ void wxGDIPlusContext::GetTextExtent( const wxString &str, wxDouble *width, wxDo
|
||||
m_context->MeasureString((const wchar_t *) s , wcslen(s) , f, layoutRect, &strFormat, &bounds ) ;
|
||||
if ( width )
|
||||
*width = bounds.Width;
|
||||
if ( height )
|
||||
*height = bounds.Height;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user