diff options
-rw-r--r-- | vcl/win/gdi/salfont.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index 62d3e611eead..d198dc678319 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -1375,11 +1375,7 @@ HFONT WinSalGraphics::ImplDoSetFont( FontSelectPattern* i_pFont, float& o_rFontS && !bImplSalCourierScalable && bImplSalCourierNew && (ImplSalWICompareAscii( aLogFont.lfFaceName, "Courier" ) == 0) ) - wcscpy( aLogFont.lfFaceName, L"Courier New" ); - - // Prefer the scalable 'Microsoft Sans Serif' to the old raster 'MS Sans Serif' - if( ImplSalWICompareAscii( aLogFont.lfFaceName, "MS Sans Serif" ) == 0 ) - wcscpy( aLogFont.lfFaceName, L"Microsoft Sans Serif" ); + lstrcpynW( aLogFont.lfFaceName, L"Courier New", 12 ); // #i47675# limit font requests to MAXFONTHEIGHT // TODO: share MAXFONTHEIGHT font instance |