From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylor Venable Newsgroups: gmane.emacs.help Subject: Re: configuring fontsets on Emacs+Xft (CVS) Date: Sun, 17 Jun 2007 17:54:49 -0400 Message-ID: <4675ADA9.4020905@metasyntax.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182117356 18165 80.91.229.12 (17 Jun 2007 21:55:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2007 21:55:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: David Madore Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 17 23:55:53 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I02iv-0000dP-K1 for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2007 23:55:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I02iv-0007Dq-5b for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2007 17:55:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I02ih-0007Ai-5q for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 17:55:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I02ig-00079z-8P for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 17:55:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I02ig-00079q-3A for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 17:55:38 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I02iC-0000jC-AH for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 17:55:37 -0400 Original-Received: from [71.97.203.207] (helo=[192.168.3.104]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis), id 0MKp8S-1I02i12V0n-0002xy; Sun, 17 Jun 2007 17:55:00 -0400 User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) In-Reply-To: X-Provags-ID: V01U2FsdGVkX1+yvriedyPRslJ+K87mpndf7BdqLjbUqd6iRoK svFbTLY8kTndS3WHBj4L1ueSlSqhSAdfBEj21pH5VVzNFfX6ne zJrL4MmkLmv2G9WWubxLA== X-detected-kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45141 Archived-At: David Madore wrote: > Is there a wizard around who understands how to configure fonts > properly using the Xft-enabled (GNU) Emacs? (I refer to 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/