]> code.delx.au - gnu-emacs/commitdiff
Improve font selection by family on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Thu, 24 Mar 2016 16:30:41 +0000 (18:30 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 24 Mar 2016 16:30:41 +0000 (18:30 +0200)
* 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.

src/w32font.c

index a1878adb4bd8a3b50b5bfe123e363340c37dba3a..018e6572563df4118f8690cfd0276a0cb4919c9f 100644 (file)
@@ -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;
     }