Mercurial > dwindows
changeset 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 | e21c70d75cb1 |
children | 2b55465887e1 |
files | win/dw.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;