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: X fonts selection weirdness Date: Wed, 25 Jun 2008 00:10:00 +0900 Message-ID: References: <20080624.124226.1059534586998157705.kasahara@nc.kyushu-u.ac.jp> <20080624.145703.566779761171555788.kasahara@nc.kyushu-u.ac.jp> 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 1214320259 11565 80.91.229.12 (24 Jun 2008 15:10:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2008 15:10:59 +0000 (UTC) Cc: kasahara@nc.kyushu-u.ac.jp, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 24 17:11:40 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 1KBAB7-0003gl-3v for ged-emacs-devel@m.gmane.org; Tue, 24 Jun 2008 17:11:29 +0200 Original-Received: from localhost ([127.0.0.1]:52256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBAAH-0004Qh-Om for ged-emacs-devel@m.gmane.org; Tue, 24 Jun 2008 11:10:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBA9t-0004FH-Hf for emacs-devel@gnu.org; Tue, 24 Jun 2008 11:10:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBA9r-0004E6-La for emacs-devel@gnu.org; Tue, 24 Jun 2008 11:10:13 -0400 Original-Received: from [199.232.76.173] (port=36839 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBA9r-0004Dy-FY for emacs-devel@gnu.org; Tue, 24 Jun 2008 11:10:11 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:50664) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBA9q-0006Do-7F for emacs-devel@gnu.org; Tue, 24 Jun 2008 11:10:10 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m5OFB4lj024373; Wed, 25 Jun 2008 00:11:05 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m5OFA32B017969; Wed, 25 Jun 2008 00:10:03 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id m5OFA0Sm020101; Wed, 25 Jun 2008 00:10:00 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KBA9g-0003pL-8E; Wed, 25 Jun 2008 00:10:00 +0900 In-reply-to: (message from Stefan Monnier on Tue, 24 Jun 2008 08:42:10 -0400) 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:99852 Archived-At: In article , Stefan Monnier writes: > > Thank you. I've just installed a fix to pay attention to > > DPI on font sorting. Please try with the latest code again. > I couldn't find the corresponding patch, so just to make sure: by "pay > attention" you don't mean that you compare various fonts DPI, right? > DPIs are irrelevant, what we want instead is to sort based on the pixel > size or on pointsize/dpi. What I modified is the function font_score. I made it to prefer the same DPI if the pixelsize is the same. Previously, as this log shows: sort-by: -misc-fixed-medium-r-normal--14-*-75-75-c-70-iso8859-1 x:-misc-fixed-medium-r-normal--14-*-100-100-c-70-iso8859-1 the difference of DPI was ignored. --- Kenichi Handa handa@ni.aist.go.jp