comparison src/w32fns.c @ 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 7a00556be3ce
children 0c8e1c895076
comparison
equal deleted inserted replaced
45231:d68e3a5fce0c 45232:4413ac739ab9
7125 /* Check that the character set matches if it was specified */ 7125 /* Check that the character set matches if it was specified */
7126 if (lpef->logfont.lfCharSet != DEFAULT_CHARSET && 7126 if (lpef->logfont.lfCharSet != DEFAULT_CHARSET &&
7127 lplf->elfLogFont.lfCharSet != lpef->logfont.lfCharSet) 7127 lplf->elfLogFont.lfCharSet != lpef->logfont.lfCharSet)
7128 return 1; 7128 return 1;
7129 7129
7130 if (FontType == RASTER_FONTTYPE)
7131 {
7132 /* DBCS raster fonts have problems displaying, so skip them. */
7133 int charset = lplf->elfLogFont.lfCharSet;
7134 if (charset == SHIFTJIS_CHARSET
7135 || charset == HANGEUL_CHARSET
7136 || charset == CHINESEBIG5_CHARSET
7137 || charset == GB2312_CHARSET
7138 #ifdef JOHAB_CHARSET
7139 || charset == JOHAB_CHARSET
7140 #endif
7141 )
7142 return 1;
7143 }
7144
7130 { 7145 {
7131 char buf[100]; 7146 char buf[100];
7132 Lisp_Object width = Qnil; 7147 Lisp_Object width = Qnil;
7133 Lisp_Object charset_list = Qnil; 7148 Lisp_Object charset_list = Qnil;
7134 char *charset = NULL; 7149 char *charset = NULL;