Improve font selection by family on MS-Windows
* src/w32font.c (w32font_list_internal): Allow 'ascii-0' charset, in addition to 'iso10646-1', 'unicode-bmp', and 'unicode-sip'. This avoids rejecting many font families whose members are shown by 'font-family-list', in particular 'courier' requested by info.el. Without this change, many values of ':family' attribute of a face have no effect on MS-Windows, because they are rejected due to bogus mismatch of the charset.
This commit is contained in:
parent
73d213f281
commit
7eba90c122
1 changed files with 2 additions and 1 deletions
|
@ -796,7 +796,8 @@ w32font_list_internal (struct frame *f, Lisp_Object font_spec,
|
|||
&& !EQ (spec_charset, Qiso10646_1)
|
||||
&& !EQ (spec_charset, Qunicode_bmp)
|
||||
&& !EQ (spec_charset, Qunicode_sip)
|
||||
&& !EQ (spec_charset, Qunknown))
|
||||
&& !EQ (spec_charset, Qunknown)
|
||||
&& !EQ (spec_charset, Qascii_0))
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue