diff options
| author | Eli Zaretskii | 2016-03-24 18:30:41 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-03-24 18:30:41 +0200 |
| commit | 7eba90c12227d86636aaa3da8d68b0c213fb3910 (patch) | |
| tree | 87df78c5757aeca2eefc6127009cefb3ad84135f | |
| parent | 73d213f2816876fe9c6c429e75a3be5454a42b34 (diff) | |
| download | emacs-7eba90c12227d86636aaa3da8d68b0c213fb3910.tar.gz emacs-7eba90c12227d86636aaa3da8d68b0c213fb3910.zip | |
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.
| -rw-r--r-- | src/w32font.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/w32font.c b/src/w32font.c index a1878adb4bd..018e6572563 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -796,7 +796,8 @@ w32font_list_internal (struct frame *f, Lisp_Object font_spec, | |||
| 796 | && !EQ (spec_charset, Qiso10646_1) | 796 | && !EQ (spec_charset, Qiso10646_1) |
| 797 | && !EQ (spec_charset, Qunicode_bmp) | 797 | && !EQ (spec_charset, Qunicode_bmp) |
| 798 | && !EQ (spec_charset, Qunicode_sip) | 798 | && !EQ (spec_charset, Qunicode_sip) |
| 799 | && !EQ (spec_charset, Qunknown)) | 799 | && !EQ (spec_charset, Qunknown) |
| 800 | && !EQ (spec_charset, Qascii_0)) | ||
| 800 | return Qnil; | 801 | return Qnil; |
| 801 | } | 802 | } |
| 802 | 803 | ||