Always set the font to use in wxMSW wxTextMeasure when using a window.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Nov 2012 17:15:19 +0000 (17:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Nov 2012 17:15:19 +0000 (17:15 +0000)
commitd78aa51b17c8d218d6392c7a4985a60d4a596c46
tree2314ca5d3983646d848837f083cb6827af6c7ddf
parente0da9e871a3184daa1a32bcacbfdf6ddb9ed7db4
Always set the font to use in wxMSW wxTextMeasure when using a window.

The default window HDC font is not the same as the wxWindow font, so we need
to always set the font explicitly in this case (when using a wxDC, its HDC
does have the current wxDC font already selected into it, so doing it once
again would be unnecessarily wasteful).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/textmeasure.cpp