all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Continuing Font Problems: Some XFT fonts not using XFT engine?
Date: Thu, 16 Apr 2009 07:42:16 +0900	[thread overview]
Message-ID: <87tz4p5yk7.fsf@catnip.gol.com> (raw)
In-Reply-To: 20090415201122.GA28776@metasyntax.net

Taylor Venable <taylor@metasyntax.net> writes:
> I can set XFT fonts like "DejaVu Sans Mono" for the 'default' face and
> it looks great.  However, when I set 'variable-pitch' to use "DejaVu
> Sans" or "DejaVu Serif" the XFT engine is not used.  To summarise:
>
>     (set-face-attribute 'variable-pitch nil :font "DejaVu Sans")
>        >> hover over something to get a tooltip, see that it's all
>           blocky and not anti-aliased

You're using openbsd, but on debian there's annoying package (which I
think gets installed by default) that makes all truetype fonts also
available as (usually pretty ugly ugly) X bitmap fonts, using the _same
font name_.  I think the debian package is called "xfstt".

This isn't such a problem for most apps, which only understand one of
the two types of fonts, but it may terribly confuse Emacs, which can
handle both simultaneously.

The easiest way to avoid the problem is to (1) un-install that package
[on debian, ... dunno on openbsd], or (2) tell emacs to only use either
"xft" or "x" fonts, and not both (the default is to support both).

You can do the latter by doing putting something like:

   Emacs.FontBackend: xft

in your .Xdefaults file, or by doing
(set-frame-parameter nil 'font-backend '(xft))
[this only affects the current frame though.]

> My Emacs version is: GNU Emacs 23.0.92.1 (i386-unknown-openbsd4.5,
> GTK+ Version 2.14.7) of 2009-04-13 on lionel.metasyntax.net

-Miles

-- 
"... The revolution will be no re-run brothers; The revolution will be live."





  reply	other threads:[~2009-04-15 22:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15 20:11 Continuing Font Problems: Some XFT fonts not using XFT engine? Taylor Venable
2009-04-15 22:42 ` Miles Bader [this message]
2009-04-16  0:40   ` Jason Rumney
2009-04-16  1:10     ` Taylor Venable
2009-04-16  2:50     ` Miles Bader

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=87tz4p5yk7.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --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 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.