From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jed Brown Newsgroups: gmane.emacs.bugs Subject: bug#5413: 23.1.91; Incorrect font sizes and weights Date: Mon, 18 Jan 2010 19:53:26 +0100 Message-ID: <87wrzfgs7t.fsf@59A2.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263908017 32479 80.91.229.12 (19 Jan 2010 13:33:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2010 13:33:37 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 19 14:33:29 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 1NXED1-0003dy-S2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2010 14:33:28 +0100 Original-Received: from localhost ([127.0.0.1]:32871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXED2-0007Yf-Gt for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2010 08:33:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWwyc-0002sj-Sv for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 14:09:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWwyZ-0002sP-AZ for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 14:09:25 -0500 Original-Received: from [199.232.76.173] (port=36645 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWwyZ-0002sM-6g for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 14:09:23 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33066) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWwyY-0004pE-LD for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 14:09:22 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NWwij-0004Mr-RM; Mon, 18 Jan 2010 13:53:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Jed Brown , 5413@debbugs.gnu.org Resent-From: Jed Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jan 2010 18:53:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5413 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.126384075116769 (code B ref -1); Mon, 18 Jan 2010 18:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jan 2010 18:52:31 +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 1NWwiD-0004MQ-Tb for submit@debbugs.gnu.org; Mon, 18 Jan 2010 13:52:30 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NWwhl-0004LT-0l for submit@debbugs.gnu.org; Mon, 18 Jan 2010 13:52:05 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:51125 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NWwhg-0000ev-Ik for submit@debbugs.gnu.org; Mon, 18 Jan 2010 13:51:56 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NWwhc-0007d6-90 for submit@debbugs.gnu.org; Mon, 18 Jan 2010 13:51:55 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:52105) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWwhc-0007cr-1z for submit@debbugs.gnu.org; Mon, 18 Jan 2010 13:51:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWwhb-0004jg-Jf for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 13:51:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWwhW-0004dL-9e for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 13:51:50 -0500 Original-Received: from [199.232.76.173] (port=42834 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWwhW-0004dD-57 for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 13:51:46 -0500 Original-Received: from mail-fx0-f228.google.com ([209.85.220.228]:40975) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWwhV-0007bR-BQ for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2010 13:51:45 -0500 Original-Received: by fxm28 with SMTP id 28so1233501fxm.26 for ; Mon, 18 Jan 2010 10:51:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:mime-version:content-type; bh=1K7tW5pDhjGYl6iKsq8pYsSwM6bzAI0Dmfj57M8bbsU=; b=F6BDgcBajE61XHepxVOhg74flFNGPiENPGbeVvpPrgU8T0RsO/KIa+vCVCnF6KVku/ ndxMzYswo77Uwa+CxRb6oE/w7cCvg0aAEe+N3eywraoJup591oXKpzLDHoDvAcWAoifY PiH0xYfvqTnVz72AjWHqnqrG78TascpnYz7LE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:mime-version:content-type; b=Xfqc13yG2coOWNvCgu7DR1wBajDb0d3fLXdfnaMy6BzbUjuTFYgfcJOHU6f+uVWDke JQt108uF0ThraAMMaecmUfblsRMiqQXP0XN5UxfTanumWsDqfTCVnX6wzcVd/KDXYMnR ITlPnRljn3HpVRum9O4/iNUbLlINFQ2m/Q5bE= Original-Received: by 10.223.144.207 with SMTP id a15mr3808249fav.70.1263840703762; Mon, 18 Jan 2010 10:51:43 -0800 (PST) Original-Received: from kunyang (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id 31sm4054443fkt.1.2010.01.18.10.51.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Jan 2010 10:51:42 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Mon, 18 Jan 2010 13:52:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -5.9 (-----) Resent-Date: Mon, 18 Jan 2010 13:53:01 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 19 Jan 2010 08:30:44 -0500 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:34489 Archived-At: 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. 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' And this font seems to be the correct size, but the weight is too light. Compare the bottom two frames in the screenshot http://imgur.com/TcGj6.png The bottom-left frame is the rendering I want (using the 23.1.50.1 build quoted above with 'DejaVu Sans Mono-10.2'). The bottom-right frame is the latest build with what claims to be the desired font, and the top frame is the latest build with 'DejaVu Sans Mono-10'. Why is it so hard to choose my desired font? Jed In GNU Emacs 23.1.91.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.5) of 2010-01-18 on kunyang Windowing system distributor `The X.Org Foundation', version 11.0.10703902 configured using `configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--mandir=/usr/share/man' '--with-x-toolkit=gtk' '--without-gconf' 'CFLAGS=-march=native -O1 -pipe' 'LDFLAGS=-Wl,--hash-style=gnu -Wl,--as-needed'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Help Minor modes in effect: global-auto-complete-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t view-mode: t Recent input: C-p C-p C-u C-x = C-x 1 C-u C-x = C-S-x 0 M-x r e p o r t Recent messages: Setting up CEDET packages...done Loading /usr/share/emacs/site-lisp/cedet/common/cedet.el (source)...done ECB 2.40 uses CEDET 1.0pre7 (contains semantic 2.0pre7, eieio 1.2, speedbar 1.0.3). Loading /home/jed/.emacs-ede...done Loading /home/jed/.ecb-user-layouts.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Type C-x 1 to delete the help window. Char: ; (59, #o73, #x3b) point=141 of 191 (73%) column=0 Type C-x 1 to delete the help window. Char: ; (59, #o73, #x3b) point=141 of 191 (73%) column=0 Load-path shadows: /usr/share/emacs/site-lisp/ecb/ecb2/test hides /usr/share/emacs/site-lisp/cedet/semantic/tests/test /usr/share/emacs/site-lisp/cedet/common/ezimage hides /usr/share/emacs/23.1.91/lisp/ezimage /usr/share/emacs/site-lisp/cedet/speedbar/speedbar hides /usr/share/emacs/23.1.91/lisp/speedbar /usr/share/emacs/site-lisp/cedet/speedbar/dframe hides /usr/share/emacs/23.1.91/lisp/dframe /usr/share/emacs/site-lisp/cedet/speedbar/sb-image hides /usr/share/emacs/23.1.91/lisp/sb-image /usr/share/emacs/site-lisp/cedet/eieio/eieio-custom hides /usr/share/emacs/23.1.91/lisp/emacs-lisp/eieio-custom /usr/share/emacs/site-lisp/cedet/eieio/eieio-opt hides /usr/share/emacs/23.1.91/lisp/emacs-lisp/eieio-opt /usr/share/emacs/site-lisp/cedet/eieio/eieio-base hides /usr/share/emacs/23.1.91/lisp/emacs-lisp/eieio-base /usr/share/emacs/site-lisp/cedet/eieio/eieio-comp hides /usr/share/emacs/23.1.91/lisp/emacs-lisp/eieio-comp /usr/share/emacs/site-lisp/cedet/eieio/eieio-datadebug hides /usr/share/emacs/23.1.91/lisp/emacs-lisp/eieio-datadebug /usr/share/emacs/site-lisp/cedet/eieio/chart hides /usr/share/emacs/23.1.91/lisp/emacs-lisp/chart /usr/share/emacs/site-lisp/cedet/eieio/eieio-speedbar hides /usr/share/emacs/23.1.91/lisp/emacs-lisp/eieio-speedbar /usr/share/emacs/site-lisp/cedet/eieio/eieio hides /usr/share/emacs/23.1.91/lisp/emacs-lisp/eieio /usr/share/emacs/site-lisp/cedet/common/data-debug hides /usr/share/emacs/23.1.91/lisp/cedet/data-debug /usr/share/emacs/site-lisp/cedet/common/pulse hides /usr/share/emacs/23.1.91/lisp/cedet/pulse /usr/share/emacs/site-lisp/cedet/common/cedet-global hides /usr/share/emacs/23.1.91/lisp/cedet/cedet-global /usr/share/emacs/site-lisp/cedet/ede/ede hides /usr/share/emacs/23.1.91/lisp/cedet/ede /usr/share/emacs/site-lisp/cedet/semantic/semantic hides /usr/share/emacs/23.1.91/lisp/cedet/semantic /usr/share/emacs/site-lisp/cedet/srecode/srecode hides /usr/share/emacs/23.1.91/lisp/cedet/srecode /usr/share/emacs/site-lisp/cedet/common/cedet-cscope hides /usr/share/emacs/23.1.91/lisp/cedet/cedet-cscope /usr/share/emacs/site-lisp/cedet/common/cedet-idutils hides /usr/share/emacs/23.1.91/lisp/cedet/cedet-idutils /usr/share/emacs/site-lisp/cedet/common/cedet hides /usr/share/emacs/23.1.91/lisp/cedet/cedet /usr/share/emacs/site-lisp/cedet/common/inversion hides /usr/share/emacs/23.1.91/lisp/cedet/inversion /usr/share/emacs/site-lisp/cedet/common/mode-local hides /usr/share/emacs/23.1.91/lisp/cedet/mode-local /usr/share/emacs/site-lisp/cedet/common/cedet-files hides /usr/share/emacs/23.1.91/lisp/cedet/cedet-files Features: (shadow sort mail-extr emacsbug eieio-opt pp descr-text help-mode view semantic-el semantic-bovine bovine-debug semantic-debug ecb-layout-defs uniquify printing ps-print ps-def lpr preview-latex tex-site auto-loads caml-font cmake-mode cc-styles cc-align cc-engine cc-vars cc-defs tempo url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse timezone url-vars xml-parse doxymacs auto-complete easy-mmode expander pulldown ede-cpp-root semantic-mru-bookmark semantic-idle semantic-decorate-include semantic-decorate-mode semantic-decorate semantic-gcc semantic-dep semantic-ia pulse senator which-func semantic-imenu semantic-sb imenu ecb ecb-symboldef silentcomp ecb-analyse ecb-compatibility ecb-winman-support ecb-autogen autoload ecb-tod ecb-cycle ecb-eshell ecb-help ecb-jde ecb-method-browser hideshow ecb-semantic ecb-file-browser ecb-speedbar ecb-layout compile comint ecb-create-layout ecb-compilation ecb-common-browser ecb-navigate ecb-cedet-wrapper semanticdb-mode semanticdb-find semanticdb-ref ecb-mode-line ecb-face tree-buffer ecb-upgrade ecb-util ring thingatpt cedet cedet-contrib-load contrib-loaddefs cogre-load cogre-loaddefs cogre-srecode semantic-edit srecode-template-mode srecode-template srecode-template-wy semantic-wisent wisent srecode-map srecode-dictionary speedbar-load speedbar-loaddefs ede-load ede-loaddefs ede-speedbar ede-files ede eieio-speedbar semantic-ia-sb semantic-analyze semantic-scope semantic-analyze-fcn semantic-sort semanticdb-el semanticdb semantic-ctxt semantic-format semantic-util-modes semantic-util semantic semantic-lex semantic-tag working fame speedbar sb-image ezimage dframe assoc eieio-custom ede-source eieio-base srecode-load srecode srecode-loaddefs semantic-load semantic-fw semantic-loaddefs mode-local find-func eieio-load eieio-loaddefs cedet-load cedet-compat cedet-loaddefs eieio byte-opt bytecomp byte-compile inversion browse-kill-ring advice help-fns advice-preload derived ido paren jabber-autoloads starttls smtpmail notmuch edmacro kmacro message idna sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec mailabbrev nnheader gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils mm-view smime password-cache dig mm-decode gnus-util netrc mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mm-util time-date mail-prsvr cl cl-19 tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind font-render-setting gtk x-toolkit x multi-tty emacs)