Author: spitzak
Date: 2007-10-17 13:21:38 -0700 (Wed, 17 Oct 2007)
New Revision: 5958
Log:
Possible fix for STR #1806, UNTESTED!
This is a guess based on the copying the code below


Modified:
   trunk/src/win32/list_fonts.cxx

Modified: trunk/src/win32/list_fonts.cxx
===================================================================
--- trunk/src/win32/list_fonts.cxx      2007-10-17 20:07:26 UTC (rev 5957)
+++ trunk/src/win32/list_fonts.cxx      2007-10-17 20:21:38 UTC (rev 5958)
@@ -172,7 +172,10 @@
   HDC dc = getDC();
 
   if (has_unicode()) {
-    EnumFontFamiliesExW(dc, NULL, (FONTENUMPROCW)enumcbW, 0, 0);
+    LOGFONTW lf;
+    memset(&lf, 0, sizeof(lf));
+    lf.lfCharSet = DEFAULT_CHARSET;
+    EnumFontFamiliesExW(dc, &lf, (FONTENUMPROCW)enumcbW, 0, 0);
   } else {
     LOGFONT lf;
     memset(&lf, 0, sizeof(lf));

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to