From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: schwab@suse.de, emacs-devel@gnu.org, jasonr@gnu.org, miles@gnu.org
Subject: Re: sans-serif name change
Date: Fri, 27 Jun 2008 16:21:26 +0900 [thread overview]
Message-ID: <E1KC8Gs-0006kZ-PQ@etlken.m17n.org> (raw)
In-Reply-To: <jwviqvxk4bq.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 25 Jun 2008 10:00:38 -0400)
In article <jwviqvxk4bq.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> 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
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-06-27 7:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 1:06 sans-serif name change Miles Bader
2008-06-25 9:22 ` Andreas Schwab
2008-06-25 9:32 ` Miles Bader
2008-06-25 9:45 ` Andreas Schwab
2008-06-25 10:33 ` James Cloos
2008-06-25 13:19 ` Miles Bader
2008-06-25 13:26 ` Andreas Schwab
2008-06-25 13:35 ` Miles Bader
2008-06-25 13:54 ` Andreas Schwab
2008-06-25 10:10 ` Jason Rumney
2008-06-25 11:36 ` Kenichi Handa
2008-06-25 14:00 ` Stefan Monnier
2008-06-27 7:21 ` Kenichi Handa [this message]
2008-06-27 7:49 ` Miles Bader
2008-06-27 8:12 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1KC8Gs-0006kZ-PQ@etlken.m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
--cc=miles@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.