all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles.bader@necel.com>
To: Kenichi Handa <handa@m17n.org>
Cc: schwab@suse.de, jasonr@gnu.org,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: sans-serif name change
Date: Fri, 27 Jun 2008 16:49:14 +0900	[thread overview]
Message-ID: <buo7icb1fnp.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <E1KC8Gs-0006kZ-PQ@etlken.m17n.org> (Kenichi Handa's message of "Fri, 27 Jun 2008 16:21:26 +0900")

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?

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?]

-Miles

-- 
My books focus on timeless truths.  -- Donald Knuth




  reply	other threads:[~2008-06-27  7:49 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 [this message]
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=buo7icb1fnp.fsf@dhapc248.dev.necel.com \
    --to=miles.bader@necel.com \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.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.