From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#4547: a bug: emacs 23.1: very large font Date: Thu, 01 Oct 2009 10:26:04 +0900 Message-ID: References: <487180556.521141253786336982.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> Reply-To: Kenichi Handa , 4547@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254361651 16204 80.91.229.12 (1 Oct 2009 01:47:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 01:47:31 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Daniel Novotny , 4547@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 03:47:23 2009 Return-path: Envelope-to: geb-bug-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 1MtAlN-00066m-Io for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2009 03:47:21 +0200 Original-Received: from localhost ([127.0.0.1]:33751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtAlN-0004Pp-1H for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 21:47:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtAlH-0004OF-G6 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 21:47:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtAlC-0004Ii-RY for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 21:47:14 -0400 Original-Received: from [199.232.76.173] (port=59369 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtAlC-0004Ia-OW for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 21:47:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43404) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtAlC-0006dX-5E for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 21:47:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n911l7QB024156; Wed, 30 Sep 2009 18:47:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n911Z5r8022364; Wed, 30 Sep 2009 18:35:05 -0700 Resent-Date: Wed, 30 Sep 2009 18:35:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 01 Oct 2009 01:35:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4547 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125436038621563 (code B ref -1); Thu, 01 Oct 2009 01:35:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 1 Oct 2009 01:26:26 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n911QOA4021560 for ; Wed, 30 Sep 2009 18:26:25 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtAR4-0007DN-B2 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 21:26:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtAQz-00078T-CW for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 21:26:21 -0400 Original-Received: from [199.232.76.173] (port=48085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtAQz-000789-3d for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 21:26:17 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:49090) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtAQy-00035K-DJ for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 21:26:16 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n911Q5qf016329; Thu, 1 Oct 2009 10:26:05 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n911Q5TI015076; Thu, 1 Oct 2009 10:26:05 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n911Q4WJ004449; Thu, 1 Oct 2009 10:26:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MtAQm-0002mK-5V; Thu, 01 Oct 2009 10:26:04 +0900 In-Reply-To: <487180556.521141253786336982.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> (message from Daniel Novotny on Thu, 24 Sep 2009 05:58:56 -0400 (EDT)) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 30 Sep 2009 21:47:14 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31606 Archived-At: In article <487180556.521141253786336982.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com>, Daniel Novotny writes: > the bug report implies that the problem here is that emacs is scaling the requested font size according to > the display resolution reported by Xorg. These are accurate for the dimensions of the screen, but that > doesn't mean emacs should use them to change the font sizes the user requested: > see https://bugzilla.redhat.com/show_bug.cgi?id=517272#c3 That bug report says: > eg, my laptop display reports xdpyinfo > > dimensions: 1600x1200 pixels (304x228 millimeters) > resolution: 134x134 dots per inch > > while my external monitor report > > dimensions: 1680x1050 pixels (514x321 millimeters) > resolution: 83x83 dots per inch > > Now both of these are accurate for the dimensions of the screen, but that > doesn't mean emacs should use them to change the font sizes the user requested > > > For example, using my laptop display > > > > - Go to the menu 'Options -> Set Default Font'. > > - Select 'DejaVu Sans Mono, Book, 12pt' > > - In a buffer, move cursor over a letter, and type 'c-u c-x =', and it > > displays > > > > xft:-unknown-DejaVu Sans-normal-normal-normal-*-22-*-*-*-*-0-iso10646-1 > > (#x50) > > ie, so when user requested requested 12pt, and emacs instead gave them 22pt At least, this bug report confuses point and pixelsize. In the above case, Emacs selected "22-pixelsize" font, not "22-point" font. And, on 134 DPI screen, 22-pixel is 12-point (3.4mm). So, it should be the correct size the user requested by saying "12pt". If one wants a font of 12-pixelsize, do something like: ESC : (set-default-font "dejavu sans mono:pixelsize=12") RET --- Kenichi Handa handa@m17n.org