diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index 802469f875..f6a456b178 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -946,7 +946,9 @@ wxGDIPlusFontData::wxGDIPlusFontData( wxGraphicsRenderer* renderer, if ( font.GetWeight() == wxFONTWEIGHT_BOLD ) style |= FontStyleBold; - Init(font.GetFaceName(), font.GetPointSize(), style, col, UnitPoint); + // Create font which size is measured in logical units + // and let the system rescale it according to the target resolution. + Init(font.GetFaceName(), font.GetPixelSize().GetHeight(), style, col, UnitPixel); } wxGDIPlusFontData::wxGDIPlusFontData(wxGraphicsRenderer* renderer,