unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Taylor Venable <taylor@metasyntax.net>
To: David Madore <david.madore@ens.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: configuring fontsets on Emacs+Xft (CVS)
Date: Sun, 17 Jun 2007 17:54:49 -0400	[thread overview]
Message-ID: <4675ADA9.4020905@metasyntax.net> (raw)
In-Reply-To: <f5425e$2d4d$1@nef.ens.fr>

David Madore wrote:
> Is there a wizard around who understands how to configure fonts
> properly using the Xft-enabled (GNU) Emacs?  (I refer to <URL:
> http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs >, and specifically
> to a today's checkout of the emacs-unicode-2 branch: I hope this is
> indeed the most sensible thing to take if I want an Emacs with
> antialiased fonts in (its own) X11 Window.  I realize that this is
> work under development, but there does not seem to be any better way,
> is there?)

I'm hardly a wizard at such things, but I have run into the same 
problem.  As far as I know, there is no other way to have anti-aliased 
fonts under X11 than to use the unicode-2 branch from CVS, so you're on 
the right track there.

> Having compiled with --enable-font-backend --with-xft, I now open a
> utf-8 file with emacs --font="FreeMono-16" (the FreeMono font contains
> all the Latin, polytonic Greek, Cyrillic and Hebrew characters I need,
> plus a good many others).  Latin characters are correctly displayed,
> but for some reason Emacs insists on getting its cyrillic characters
> from some very ugly bitmap font

I had the same issue with Greek characters using the DejaVu Sans Mono 
font.  I'm guessing the solution is the same, so here's what I did:

(set-fontset-font
   (frame-parameter nil 'font)
   'unicode
   "DejaVu Sans Mono")

If I remember correctly, this tells Emacs to use DejaVu Sans Mono as the 
font for all members of the Unicode character set.  For this to work, 
you may need to make sure your buffer encoding is set to Unicode.

Unfortunately, this is about the one place where Emacs really fails for 
me.  It's a lot easier for me to enter Unicode characters in Vim than in 
Emacs, and it looks prettier too.  Let's hope it gets better.

Best regards.

-- 
Taylor Venable
taylor@metasyntax.net
http://www.metasyntax.net/

      parent reply	other threads:[~2007-06-17 21:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-17 19:30 configuring fontsets on Emacs+Xft (CVS) David Madore
2007-06-17 20:53 ` Peter Dyballa
2007-06-17 21:54 ` Taylor Venable [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

  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=4675ADA9.4020905@metasyntax.net \
    --to=taylor@metasyntax.net \
    --cc=david.madore@ens.fr \
    --cc=help-gnu-emacs@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.
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).