From: Kenichi Handa <handa@m17n.org>
To: Miles Bader <miles@gnu.org>
Cc: schwab@suse.de, jasonr@gnu.org, monnier@iro.umontreal.ca,
emacs-devel@gnu.org
Subject: Re: sans-serif name change
Date: Fri, 27 Jun 2008 17:12:32 +0900 [thread overview]
Message-ID: <E1KC94K-0007dY-At@etlken.m17n.org> (raw)
In-Reply-To: <buo7icb1fnp.fsf@dhapc248.dev.necel.com> (message from Miles Bader on Fri, 27 Jun 2008 16:49:14 +0900)
In article <buo7icb1fnp.fsf@dhapc248.dev.necel.com>, Miles Bader <miles.bader@necel.com> writes:
> Kenichi Handa <handa@m17n.org> writes:
> > And, fontconfig requires `-' in a family name to be escaped
> > by `\':
..
> > So, how about using the same rule for Emacs?
> >
> > (set-face-attribute 'variable-pitch nil :family "sans\\-serif")
> But currently other places, such as `set-frame-font' seem to work
> properly if passed "Sans-Serif" without escaping the "-". Perhaps some
> part of emacs is already adding the backslash?
No. In ftfont.c, these names:
"mono", "monospace", "sans-serif", "sans serif", "sans", "serif"
are specially recognized as generic family names. In
addition, fontconfig accepts the literal "sans-serif" when
used in the function FcPatternAddString (pat, FC_FAMILY, ...).
Fontconfig requires escaping only on parsing a font name,
and adds escaping on generating a font name.
> I think _if_ there are fonts with "-" in their name, requiring the dash
> to be escaped will annoy and confuse users, and lead to bug reports.
> I don't know how many such fonts there are, of course.
> [I'd say just get rid of the old-style foundry-family names; do we
> really care?]
As I wrote before, I tend to agree with breaking the
backward compatibility here.
---
Kenichi Handa
handa@ni.aist.go.jp
prev parent reply other threads:[~2008-06-27 8:12 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
2008-06-27 7:49 ` Miles Bader
2008-06-27 8:12 ` Kenichi Handa [this message]
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=E1KC94K-0007dY-At@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.