Kaydet (Commit) 0a986598 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

tdf#98983: Font fallback: Map 'MS Sans Serif' to the TrueType version

Also, I don't see the point in using lstrcpynW() instead of a plain
wcscpy(), as we were passing the manually specified very length of the
source string (including terminating nul character) anyway. We did not
use a copying function that would have taken the size of the
destination buffer as a limit parameter, for instance.

Change-Id: If9e2f56b16358201c113e06289f63ed3454e00c9
üst 2ed28620
......@@ -1375,7 +1375,11 @@ HFONT WinSalGraphics::ImplDoSetFont( FontSelectPattern* i_pFont, float& o_rFontS
&& !bImplSalCourierScalable
&& bImplSalCourierNew
&& (ImplSalWICompareAscii( aLogFont.lfFaceName, "Courier" ) == 0) )
lstrcpynW( aLogFont.lfFaceName, L"Courier New", 12 );
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" );
// #i47675# limit font requests to MAXFONTHEIGHT
// TODO: share MAXFONTHEIGHT font instance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment