changeset 45232:4413ac739ab9

(enum_font_cb2): Don't use DBCS raster fonts.
author Jason Rumney <jasonr@gnu.org>
date Fri, 10 May 2002 19:15:17 +0000
parents d68e3a5fce0c
children c08c0064c649
files src/w32fns.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Fri May 10 11:21:10 2002 +0000
+++ b/src/w32fns.c	Fri May 10 19:15:17 2002 +0000
@@ -7127,6 +7127,21 @@
       lplf->elfLogFont.lfCharSet != lpef->logfont.lfCharSet)
     return 1;
 
+  if (FontType == RASTER_FONTTYPE)
+    {
+      /* DBCS raster fonts have problems displaying, so skip them.  */
+      int charset = lplf->elfLogFont.lfCharSet;
+      if (charset == SHIFTJIS_CHARSET
+	  || charset == HANGEUL_CHARSET
+	  || charset == CHINESEBIG5_CHARSET
+	  || charset == GB2312_CHARSET
+#ifdef JOHAB_CHARSET
+	  || charset == JOHAB_CHARSET
+#endif
+	  )
+	return 1;
+    }
+
   {
     char buf[100];
     Lisp_Object width = Qnil;