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: Fri, 27 Jun 2008 16:21:26 +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>, Stefan Monnier <address@hidden> writes:

> > The parsing of XXX-YYY as FOUNDRY-FAMILY is now done in
> > the function set-face-attribute as this:
[...]
> Maybe this "FOUNDRY-FAMILY" fallback code could be moved to the same
> code that handles face-font-family-alternatives?

It can find a font of FOUNDRY and FAMILY, but face
attributes are not updated propery with that change, i.e.
(set-face-attribute 'variable-pitch nil :family "misc-fixed")
(face-attribute 'variable-pitch :family) => "misc-fixed"
(face-attribute 'variable-pitch :foundry) => unspecified

Currently, we have:
(set-face-attribute 'variable-pitch nil :family "misc-fixed")
(face-attribute 'variable-pitch :family) => "fixed"
(face-attribute 'variable-pitch :foundry) => "misc"

And, fontconfig requires `-' in a family name to be escaped
by `\':

% fc-list 'DV-TTSurekh'
% fc-list 'DV\-TTSurekh'
DV\-TTSurekh:style=Normal

So, how about using the same rule for Emacs?

(set-face-attribute 'variable-pitch nil :family "sans\\-serif")

---
Kenichi Handa
address@hidden




reply via email to

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