From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: Fixed-pitch and variable-pitch faces
Date: Sat, 07 Jun 2008 14:56:34 -0400 [thread overview]
Message-ID: <jwv7id16pzm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <871w39mcx5.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 07 Jun 2008 12:23:50 -0400")
> '((t :family "courier"))
[...]
> '((t :family "helv"))
[..]
> I think the font backend is matching these to non-fontconfig fonts.
Yes, I see that here too. The problem appears to be that "courier" and
"helvetica" are proprietary/trademarked fonts and/or font names (I
don't know exactly, just guessing), so most GNU/Linux distributions
don't come with them.
Instead, they have things like "arial" and "courier new".
The old-way to solve it is to add those mapping to
face-font-family-alternatives. But as it turns out, this is not enough:
face-font-family-alternatives already maps "helv" to "arial" which I do
have anti-aliased, but I also happen to have the standard set of
adobe-helvetica bitmapped fonts distributed with Xorg and this is given
precedence in the list because, well, we asked for "helvetica" rather
than "arial".
I would actually expect fontconfig to be able to provide such mappings
as well (tho it appears not to do it), so maybe there's a way to let
fontconfig solve this problem.
As for solving it within Emacs, I'm not sure what we should do.
Maybe rather than do
(dolist (names face-font-family-alternatives)
(dolist (backend font-backends)
(try-font)))
we should just do
(dolist (backend font-backends)
(dolist (names face-font-family-alternatives)
(try-font)))
-- Stefan
next prev parent reply other threads:[~2008-06-07 18:56 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-07 16:23 Fixed-pitch and variable-pitch faces Chong Yidong
2008-06-07 16:28 ` Chong Yidong
2008-06-07 18:56 ` Stefan Monnier [this message]
2008-06-07 20:33 ` David Hansen
2008-06-07 21:34 ` James Cloos
2008-06-08 11:29 ` Kenichi Handa
2008-06-09 1:29 ` Chong Yidong
2008-06-09 2:59 ` Kenichi Handa
2008-06-09 4:49 ` Chong Yidong
2008-06-09 5:17 ` Miles Bader
2008-06-09 5:34 ` Kenichi Handa
2008-06-09 6:14 ` Miles Bader
2008-06-09 6:20 ` Miles Bader
2008-06-09 7:20 ` Kenichi Handa
2008-06-09 7:56 ` Miles Bader
2008-06-09 11:06 ` Kenichi Handa
2008-06-09 11:38 ` Miles Bader
2008-06-09 12:06 ` Kenichi Handa
2008-06-09 12:09 ` Miles Bader
2008-06-09 11:26 ` Kenichi Handa
2008-06-09 6:35 ` Kenichi Handa
2008-06-09 6:41 ` Miles Bader
2008-06-09 13:40 ` Chong Yidong
2008-06-10 1:06 ` Stefan Monnier
2008-06-10 1:44 ` David De La Harpe Golden
2008-06-10 8:01 ` James Cloos
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv7id16pzm.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).