emacs-devel
[Top][All Lists]
Advanced

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

Re: sans-serif name change


From: Kenichi Handa
Subject: Re: sans-serif name change
Date: Wed, 25 Jun 2008 20:36:39 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

In article <address@hidden>, Jason Rumney <address@hidden> writes:

> My guess is that the `-' in Sans-Serif is being treated as a separator
> character, and causes Emacs to look for a font called Serif with the
> foundry Sans, or something similar.

Yes.  I didn't change that behaviour for backward
compatibility, but as face has the attribute :foundy now, it
may be ok to break that compatibility.

The parsing of XXX-YYY as FOUNDRY-FAMILY is now done in
the function set-face-attribute as this:

        (if (and (eq (car args) :family)
                 (stringp (cadr args))
                 (string-match "\\([^-]*\\)-\\([^-]*\\)" (cadr args)))
            (let ((foundry (match-string 1 (cadr args)))
                  (family (match-string 2 (cadr args))))
              (internal-set-lisp-face-attribute face :foundry
                                                (purecopy foundry)
                                                where)
              (internal-set-lisp-face-attribute face :family
                                                (purecopy family)
                                                where))
          (internal-set-lisp-face-attribute face (car args)
                                            (purecopy (cadr args))
                                            where)))

---
Kenichi Handa
address@hidden




reply via email to

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