[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixed-pitch and variable-pitch faces

From: Stefan Monnier
Subject: Re: Fixed-pitch and variable-pitch faces
Date: Sat, 07 Jun 2008 14:56:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>   '((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)

we should just do

  (dolist (backend font-backends)
    (dolist (names face-font-family-alternatives)

-- Stefan

reply via email to

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