From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Lost antialias? Date: Mon, 16 Jun 2008 11:03:47 +0900 Message-ID: References: <485230EB.9070203@alice.it> <48546807.8010406@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1213581848 2661 80.91.229.12 (16 Jun 2008 02:04:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 02:04:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 16 04:04:51 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K845S-0006eU-NF for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 04:04:51 +0200 Original-Received: from localhost ([127.0.0.1]:39871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K844e-0002VK-Me for ged-emacs-devel@m.gmane.org; Sun, 15 Jun 2008 22:04:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K844c-0002VC-0E for emacs-devel@gnu.org; Sun, 15 Jun 2008 22:03:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K844a-0002Uz-JC for emacs-devel@gnu.org; Sun, 15 Jun 2008 22:03:57 -0400 Original-Received: from [199.232.76.173] (port=36736 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K844a-0002Uw-Ey for emacs-devel@gnu.org; Sun, 15 Jun 2008 22:03:56 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:59067) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K844Z-0003QT-Rd for emacs-devel@gnu.org; Sun, 15 Jun 2008 22:03:56 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m5G24ZMf023715; Mon, 16 Jun 2008 11:04:35 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m5G23nCt016687; Mon, 16 Jun 2008 11:03:49 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m5G23llT008451; Mon, 16 Jun 2008 11:03:47 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1K844R-0004RC-2r; Mon, 16 Jun 2008 11:03:47 +0900 In-reply-to: <48546807.8010406@alice.it> (message from Angelo Graziosi on Sun, 15 Jun 2008 02:53:27 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99283 Archived-At: In article <48546807.8010406@alice.it>, Angelo Graziosi writes: > I have tried also on Cygwin[1], and the result is different. > On Cygwin I have /.Xdefauls: > Emacs.FontBackend: xft > Emacs.font: Bitstream Vera Sans Mono-14 > Xft*antialias: true > Xft*autohint: true > The look is fine (better?), but the height is 13 not 14. The font size problem is because of the bug introduced by gtk-style fontname parser as I wrote in the previous mail. And I think "fine" means you have antialise font, then perhaps it's because you use xft backend only. > On GNU/Linux Kubuntu 8.04 the result is still 'horrible' with "DejaVu > Sans Mono-12" and "BitStream Vera Sans Mono", but is fine with > "Monospace-12". > On Kubuntu I do not use /.Xdefaults but I start Emacs as > emacs23 --font "DejaVu Sans Mono-12" & I see. So, you have "dejavu sans mono" font both by X and Xft backend. And, as I recently changed the font selector to prefer a font supplied by a backend of higher priority (the default order is x,xft on X Window System), you get "dejavu sans mono" via X backend. When you specify "monospace" instead, X backend doesn't know about it, but xft backend knows that it's a generic family name, and your system assignes "dejavu sans mono" to it. Thus you get antialias font via xft backend. If you never want "dejavu sans mono" font as a X font, just remove it from your font-path. Or, set X resource as 'Emacs*FontBackend: xft, x'. --- Kenichi Handa handa@ni.aist.go.jp