6838 |
{ |
{ |
6839 |
charset = xlfd_charset_of_font (XSTRING(*(lpef->pattern))->data); |
charset = xlfd_charset_of_font (XSTRING(*(lpef->pattern))->data); |
6840 |
|
|
6841 |
/* Ensure that charset is valid for this font. |
/* We already checked charsets above, but DEFAULT_CHARSET |
6842 |
Continue if invalid in case charset contains a wildcard. */ |
slipped through. So only allow exact matches for DEFAULT_CHARSET. */ |
6843 |
if (charset |
if (charset |
6844 |
&& (x_to_w32_charset (charset) != lplf->elfLogFont.lfCharSet)) |
&& strncmp (charset, "*-*", 3) != 0 |
6845 |
charset = NULL; |
&& lpef->logfont.lfCharSet == DEFAULT_CHARSET |
6846 |
|
&& strcmp (charset, w32_to_x_charset (DEFAULT_CHARSET)) != 0) |
6847 |
|
return 1; |
6848 |
} |
} |
6849 |
|
|
6850 |
if (charset) |
if (charset) |