comparison win/dw.c @ 1643:08da4840dfc3

Need to convert to UTF8 in dw_font_choose() on Windows in Unicode mode.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 06 Apr 2012 09:32:02 +0000
parents cdbf4cc929fc
children a7a24a3b8899
comparison
equal deleted inserted replaced
1642:e21c70d75cb1 1643:08da4840dfc3
4881 bold = " Bold"; 4881 bold = " Bold";
4882 if ( lf.lfItalic ) 4882 if ( lf.lfItalic )
4883 italic = " Italic"; 4883 italic = " Italic";
4884 height = MulDiv(abs(lf.lfHeight), 72, GetDeviceCaps (hdc, LOGPIXELSY)); 4884 height = MulDiv(abs(lf.lfHeight), 72, GetDeviceCaps (hdc, LOGPIXELSY));
4885 ReleaseDC(NULL, hdc); 4885 ReleaseDC(NULL, hdc);
4886 _snprintf( str, 100, "%d.%s%s%s", height, lf.lfFaceName, bold, italic ); 4886 _snprintf( str, 100, "%d.%s%s%s", height, WideToUTF8(lf.lfFaceName), bold, italic );
4887 } 4887 }
4888 } 4888 }
4889 return str; 4889 return str;
4890 } 4890 }
4891 4891