emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 7eba90c: Improve font selection by family on MS-W


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 7eba90c: Improve font selection by family on MS-Windows
Date: Thu, 24 Mar 2016 16:31:59 +0000

branch: emacs-25
commit 7eba90c12227d86636aaa3da8d68b0c213fb3910
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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.
---
 src/w32font.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/w32font.c b/src/w32font.c
index a1878ad..018e657 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -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;
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]