diff 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
line wrap: on
line diff
--- a/win/dw.c	Mon Apr 02 21:14:53 2012 +0000
+++ b/win/dw.c	Fri Apr 06 09:32:02 2012 +0000
@@ -4883,7 +4883,7 @@
             italic = " Italic";
          height = MulDiv(abs(lf.lfHeight), 72,  GetDeviceCaps (hdc, LOGPIXELSY));
          ReleaseDC(NULL, hdc);
-         _snprintf( str, 100, "%d.%s%s%s", height, lf.lfFaceName, bold, italic );
+         _snprintf( str, 100, "%d.%s%s%s", height, WideToUTF8(lf.lfFaceName), bold, italic );
       }
    }
    return str;