From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#5413: 23.1.91; Incorrect font sizes and weights Date: Tue, 19 Jan 2010 16:02:30 +0100 Message-ID: <4B55C986.4050409@swipnet.se> References: <87wrzfgs7t.fsf@59A2.org> 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: ger.gmane.org 1263913793 22878 80.91.229.12 (19 Jan 2010 15:09:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2010 15:09:53 +0000 (UTC) To: Jed Brown , 5413@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 19 16:09:42 2010 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 1NXFi4-00030S-Pg for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2010 16:09:37 +0100 Original-Received: from localhost ([127.0.0.1]:60216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXFi5-0000J4-FD for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2010 10:09:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXFhz-0000Hr-Fg for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 10:09:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXFhu-0000Ft-NF for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 10:09:30 -0500 Original-Received: from [199.232.76.173] (port=36548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXFhu-0000Fl-4K for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 10:09:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38109) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXFht-0006HJ-JM for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 10:09:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NXFbi-0002Nq-1L; Tue, 19 Jan 2010 10:03:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2010 15:03:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5413 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5413-submit@debbugs.gnu.org id=B5413.12639133619152 (code B ref 5413); Tue, 19 Jan 2010 15:03:01 +0000 Original-Received: (at 5413) by debbugs.gnu.org; 19 Jan 2010 15:02:41 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXFbM-0002NY-M2 for submit@debbugs.gnu.org; Tue, 19 Jan 2010 10:02:40 -0500 Original-Received: from proxy1.bredband.net ([195.54.101.71]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXFbJ-0002NT-Cz for 5413@debbugs.gnu.org; Tue, 19 Jan 2010 10:02:38 -0500 Original-Received: from ipb2.telenor.se (195.54.127.165) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C0027893CD for 5413@debbugs.gnu.org; Tue, 19 Jan 2010 16:02:31 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtBCAL5XVUtV4S1uPGdsb2JhbACBRoZwkz4BAQEBN7tahDME X-IronPort-AV: E=Sophos;i="4.49,303,1262559600"; d="scan'208";a="27709349" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 19 Jan 2010 16:02:31 +0100 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id E91E87FA01A; Tue, 19 Jan 2010 16:02:30 +0100 (CET) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <87wrzfgs7t.fsf@59A2.org> X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.9 (--) Resent-Date: Tue, 19 Jan 2010 10:03:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:34495 Archived-At: Jed Brown skrev: > I want Emacs to use the font that I get with > > $ urxvt -fn 'xft:DejaVu Sans Mono-10' > > (or when this font name is given to any other program). So the obvious > thing to try would be > > $ emacs -Q -fn 'DejaVu Sans Mono-10' > > but this resolves to > > xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-17-*-*-*-m-0-iso10646-1 > > which is way bigger than I want. What system are you rinning (i.e. Gnome, KDE, other?)? Does % xrdb -query|grep Xft show anything? How about % xdpyinfo|grep resolution ? Emacs now uses the DPI setting from the dekstop settings if available instead of the dpi reported by the X server. You probably have a mismatch there. > Next, I try manually specifying the > font that 'DejaVu Sans Mono-10.2' resolved to in my last emacs build > > GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.5) of 2009-10-08 on home.sergej.pp.ru > > (I have no idea why this goofyness was required, but 'DejaVu Sans Mono-10' looked bad there.) > > $ emacs -Q -fn '-unknown-DejaVu Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1' > Get a new version from the trunk and get the value of the lisp variable xft-settings (C-h v xft-settings). > And this font seems to be the correct size, but the weight is too light. It is not the weight, it is the hinting. Emacs uses the values from the desktop settings if available, or the fontconfig defaults otherwise. Jan D.