From unknown Sun Jun 15 08:42:48 2025 X-Loop: don@donarmstrong.com Subject: bug#402: 23.0.60; GTK style font selection interferes with Fontconfig style font selection Reply-To: James Cloos , 402@debbugs.gnu.org Resent-From: James Cloos Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: don@donarmstrong.com Resent-Date: Thu, 12 Jun 2008 21:40:06 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 402 X-Emacs-PR-Package: gnu emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121330651431849 (code B ref -1); Thu, 12 Jun 2008 21:40:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_PACKAGE autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jun 2008 21:35:14 +0000 Received: from eagle.jhcloos.com (eagle.jhcloos.com [207.210.242.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5CLZ4HJ031192 for ; Thu, 12 Jun 2008 14:35:05 -0700 Received: by eagle.jhcloos.com (Postfix, from userid 10) id 303D54013A; Thu, 12 Jun 2008 21:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1213306503; bh=cdNNTvdvY4l9BmKTi23FXnejtTVdFf9nA/MJssM6L oo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=Cnngdw2+Or3TN95HpGh3dT2+C/2EJxMcqpXFh Oi4itRrUcuitj1PFZstEACmB0EUTyV1UkxTJFQfV7u5R+mgQrNRUNFa0Zo1B1+4Ga16 aJfKmhGo3JqKV12L1C1+MCbgepQ9Pw2ZDXAz/nof8DhKI+DTVRHm6FagS7PeJfas8ZQ = Received: by lugabout.jhcloos.org (Postfix, from userid 500) id 9829321064E; Thu, 12 Jun 2008 21:34:50 +0000 (UTC) From: James Cloos To: submit@debbugs.gnu.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Copyright: Copyright 2007 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Date: Thu, 12 Jun 2008 17:34:26 -0400 Message-ID: Lines: 88 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Package: GNU Emacs Version: 23.0.60 Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Last night’s CVS uses the wrong font size when given a resource like: emacs.font: DejaVu Sans Mono:pixelsize=14:minspace=true which is the correct way to specify a fontconfig pattern with a specific pixelsize. I presume the GTK vs Fontconfig code assumes there must be a (name)-(ptsize) sequence in a fontconfig pattern, but ptsize is optional and is normally absent when specifying a pixelsize. With the above resource I get a tiny font. Leaving off the minspace=true results in a huge font. I had to used xfd(1x) to figure out the equiv point size (7.4) and change my Xdefaults to use that for now, but I strongly perfer to specify an explicit pixelsize for text editors, terminals and other UI usages, leaving points for documents. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-06-12 on lugabout Windowing system distributor `The X.Org Foundation', version 11.0.10599001 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--without-carbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--enable-font-backend' '--with-freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=athena' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CC=i686-pc-linux-gnu-gcc' 'CFLAGS=-march=pentium3 -O2 -Wno-error' 'LDFLAGS= -Wl,--as-needed '' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: C value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: M-x r e p o r C-g C-h a r e p o r t M-x d e b b Recent messages: Loading /usr/share/emacs/site-lisp/site-gentoo.d/70ngnus-gentoo.el (source)...done Loading /usr/share/emacs/site-lisp/site-gentoo.d/70svn-gentoo.el (source)...done Loading /usr/share/emacs/site-lisp/70xrdb-mode-gentoo.el (source)...done Loading delsel...done Loading time...done Loading paren...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [3 times] Quit Type C-x 1 to remove help window. From unknown Sun Jun 15 08:42:48 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: James Cloos Subject: bug#402 closed by Chong Yidong (Re: Font pixel size selection) Message-ID: References: <8763sat9xb.fsf@stupidchicken.com> X-Emacs-PR-Message: they-closed 402 X-Emacs-PR-Package: gnu emacs Reply-To: 402@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1213582205-30868-1" This is a multi-part message in MIME format... ------------=_1213582205-30868-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the gnu emacs package: #402: 23.0.60; GTK style font selection interferes with Fontconfig style fo= nt selection It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 402: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D402 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1213582205-30868-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sun Jun 15 19:01:44 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.4 required=4.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 402-close) by emacsbugs.donarmstrong.com; 16 Jun 2008 02:01:45 +0000 Received: from furry (c-98-216-111-182.hsd1.ma.comcast.net [98.216.111.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5G21fkI028922 for <402-close@emacsbugs.donarmstrong.com>; Sun, 15 Jun 2008 19:01:43 -0700 Received: by furry (Postfix, from userid 1000) id 4A482C056; Sun, 15 Jun 2008 22:01:36 -0400 (EDT) From: Chong Yidong To: James Cloos Cc: "Yuan MEI" , emacs-devel@gnu.org, 402-close@debbugs.gnu.org Subject: Re: Font pixel size selection References: Date: Sun, 15 Jun 2008 22:01:36 -0400 In-Reply-To: (James Cloos's message of "Sun, 15 Jun 2008 18:41:30 -0400") Message-ID: <8763sat9xb.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii James Cloos writes: > Yuan> I think the only problem here is :pixelsize=14 > Yuan> Fontconfig has the format: > > Yuan> -:=:= > > The - part is optional; the comment and the code in font.c > acknowledge that fact. But it clearly doesn't work. I've checked in a fix. I believe this should work correctly now. Thanks. ------------=_1213582205-30868-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cloos@jhcloos.com Thu Jun 12 14:35:13 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_PACKAGE autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jun 2008 21:35:14 +0000 Received: from eagle.jhcloos.com (eagle.jhcloos.com [207.210.242.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5CLZ4HJ031192 for ; Thu, 12 Jun 2008 14:35:05 -0700 Received: by eagle.jhcloos.com (Postfix, from userid 10) id 303D54013A; Thu, 12 Jun 2008 21:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1213306503; bh=cdNNTvdvY4l9BmKTi23FXnejtTVdFf9nA/MJssM6L oo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=Cnngdw2+Or3TN95HpGh3dT2+C/2EJxMcqpXFh Oi4itRrUcuitj1PFZstEACmB0EUTyV1UkxTJFQfV7u5R+mgQrNRUNFa0Zo1B1+4Ga16 aJfKmhGo3JqKV12L1C1+MCbgepQ9Pw2ZDXAz/nof8DhKI+DTVRHm6FagS7PeJfas8ZQ = Received: by lugabout.jhcloos.org (Postfix, from userid 500) id 9829321064E; Thu, 12 Jun 2008 21:34:50 +0000 (UTC) From: James Cloos To: submit@debbugs.gnu.org Subject: 23.0.60; GTK style font selection interferes with Fontconfig style font selection User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Copyright: Copyright 2007 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Date: Thu, 12 Jun 2008 17:34:26 -0400 Message-ID: Lines: 88 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Package: GNU Emacs Version: 23.0.60 Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Last night’s CVS uses the wrong font size when given a resource like: emacs.font: DejaVu Sans Mono:pixelsize=14:minspace=true which is the correct way to specify a fontconfig pattern with a specific pixelsize. I presume the GTK vs Fontconfig code assumes there must be a (name)-(ptsize) sequence in a fontconfig pattern, but ptsize is optional and is normally absent when specifying a pixelsize. With the above resource I get a tiny font. Leaving off the minspace=true results in a huge font. I had to used xfd(1x) to figure out the equiv point size (7.4) and change my Xdefaults to use that for now, but I strongly perfer to specify an explicit pixelsize for text editors, terminals and other UI usages, leaving points for documents. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-06-12 on lugabout Windowing system distributor `The X.Org Foundation', version 11.0.10599001 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--without-carbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--enable-font-backend' '--with-freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=athena' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CC=i686-pc-linux-gnu-gcc' 'CFLAGS=-march=pentium3 -O2 -Wno-error' 'LDFLAGS= -Wl,--as-needed '' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: C value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: M-x r e p o r C-g C-h a r e p o r t M-x d e b b Recent messages: Loading /usr/share/emacs/site-lisp/site-gentoo.d/70ngnus-gentoo.el (source)...done Loading /usr/share/emacs/site-lisp/site-gentoo.d/70svn-gentoo.el (source)...done Loading /usr/share/emacs/site-lisp/70xrdb-mode-gentoo.el (source)...done Loading delsel...done Loading time...done Loading paren...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [3 times] Quit Type C-x 1 to remove help window. ------------=_1213582205-30868-1-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 18:35:20 2010 Received: (at control) by debbugs.gnu.org; 19 Jan 2010 23:35:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXNbT-0003DQ-Fj for submit@debbugs.gnu.org; Tue, 19 Jan 2010 18:35:19 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXNbP-0003DL-Jv for control@debbugs.gnu.org; Tue, 19 Jan 2010 18:35:17 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NXNbL-00036n-RY; Tue, 19 Jan 2010 18:35:11 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19286.16815.726944.830793@gargle.gargle.HOWL> Date: Tue, 19 Jan 2010 18:35:11 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: ?,Q-X/R?Ur:.x4[/Y7TOZ/nbMkm$Lug$AM]#ZG_m_sT5/*29GHa?\fpI/}5d@:{&9Hx8Mq X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) unarchive 68 unarchive 402 reassign 68 emacs reassign 402 emacs archive 68 archive 402 stop fix "GNU Emacs" typo in original submissions