From unknown Tue Aug 19 12:51:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6526 <6526@debbugs.gnu.org> To: bug#6526 <6526@debbugs.gnu.org> Subject: Status: 24.0.50; Font X resouce is ignored Reply-To: bug#6526 <6526@debbugs.gnu.org> Date: Tue, 19 Aug 2025 19:51:09 +0000 retitle 6526 24.0.50; Font X resouce is ignored reassign 6526 emacs submitter 6526 Kenichi Handa severity 6526 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 28 04:16:00 2010 Received: (at submit) by debbugs.gnu.org; 28 Jun 2010 08:16:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT9VX-0005n9-M6 for submit@debbugs.gnu.org; Mon, 28 Jun 2010 04:16:00 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT9VU-0005n2-BL for submit@debbugs.gnu.org; Mon, 28 Jun 2010 04:15:57 -0400 Received: from lists.gnu.org ([199.232.76.165]:35401) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OT9VR-0007Cj-7t for submit@debbugs.gnu.org; Mon, 28 Jun 2010 04:15:53 -0400 Received: from [140.186.70.92] (port=33926 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT9VO-0007Cl-SV for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 04:15:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OT9VJ-0004SW-Vp for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 04:15:50 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]:47181) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT9VJ-0004S8-Bv for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 04:15:45 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o5S8Ffb0012312 for ; Mon, 28 Jun 2010 17:15:41 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o5S8Ffkp013012 for ; Mon, 28 Jun 2010 17:15:41 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id o5S8Feg3027531 for ; Mon, 28 Jun 2010 17:15:40 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1OT9VE-0005hV-PX for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 17:15:40 +0900 From: Kenichi Handa To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Font X resouce is ignored Date: Mon, 28 Jun 2010 17:15:40 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit 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: -4.6 (----) After the following change: 2010-06-22 Jan Dj=E4rv * xfns.c (x_default_font_parameter): Try to open font from system before using it (bug#6478). Rename got_from_gconf to got_from_system. Font X resource settings are ignored. For instnace, I have these settinggs: Emacs.Font: fontset-24 Emacs.Fontset-0: -etl-*-medium-r-normal-*-14-*-*-*-*-*-fontset-14 Emacs.Fontset-1: -etl-*-medium-r-normal-*-18-*-*-*-*-*-fontset-18 Emacs.Fontset-2: -etl-*-medium-r-normal-*-20-*-*-*-*-*-fontset-20 Emacs.Fontset-3: -etl-*-medium-r-normal-*-24-*-*-*-*-*-fontset-24 Before the above change, Emacs uses the font -etl-fixed-medium-r-normal--24-...-iso8859-1, but now it uses the font "DejaVu Sans Mono". --- Kenichi Handa handa@m17n.org In GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.18.3) of 2010-06-28 on etlken Windowing system distributor `The X.Org Foundation', version 11.0.10604000 configured using `configure 'CFLAGS=3D-g'' 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: ja_JP.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: M-x r e v p o o =20 o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/local/share/emacs/site-lisp/lookup-utils hides /usr/local/share/emacs/= site-lisp/lookup/lookup-utils /usr/local/share/emacs/site-lisp/lookup-vars hides /usr/local/share/emacs/s= ite-lisp/lookup/lookup-vars /usr/local/share/emacs/site-lisp/ndkks hides /usr/local/share/emacs/site-li= sp/lookup/ndkks /usr/local/share/emacs/site-lisp/stem-english hides /usr/local/share/emacs/= site-lisp/lookup/stem-english /usr/local/share/emacs/site-lisp/sdicf hides /usr/local/share/emacs/site-li= sp/lookup/sdicf /usr/local/share/emacs/site-lisp/ndict hides /usr/local/share/emacs/site-li= sp/lookup/ndict /usr/local/share/emacs/site-lisp/lookup-content hides /usr/local/share/emac= s/site-lisp/lookup/lookup-content /usr/local/share/emacs/site-lisp/lookup hides /usr/local/share/emacs/site-l= isp/lookup/lookup /usr/local/share/emacs/site-lisp/ndspell hides /usr/local/share/emacs/site-= lisp/lookup/ndspell /usr/local/share/emacs/site-lisp/ndeb hides /usr/local/share/emacs/site-lis= p/lookup/ndeb /usr/local/share/emacs/site-lisp/lookup-types hides /usr/local/share/emacs/= site-lisp/lookup/lookup-types /usr/local/share/emacs/site-lisp/ndsrd hides /usr/local/share/emacs/site-li= sp/lookup/ndsrd /usr/local/share/emacs/site-lisp/ndcookie hides /usr/local/share/emacs/site= -lisp/lookup/ndcookie /usr/local/share/emacs/site-lisp/lookup-select hides /usr/local/share/emacs= /site-lisp/lookup/lookup-select /usr/local/share/emacs/site-lisp/ndic hides /usr/local/share/emacs/site-lis= p/lookup/ndic /usr/local/share/emacs/site-lisp/ndtp hides /usr/local/share/emacs/site-lis= p/lookup/ndtp /usr/local/share/emacs/site-lisp/egg/leim-list hides /usr/local/work/emacs/= build/leim/leim-list /usr/local/share/emacs/site-lisp/rmail-mime/mime/pgg-parse hides /usr/local= /work/emacs/build/lisp/pgg-parse /usr/local/share/emacs/site-lisp/rmail-mime/mail/sha1 hides /usr/local/work= /emacs/build/lisp/sha1 /usr/local/share/emacs/site-lisp/rmail-mime/mime/pgg-gpg hides /usr/local/w= ork/emacs/build/lisp/pgg-gpg /usr/local/share/emacs/site-lisp/rmail-mime/mail/hex-util hides /usr/local/= work/emacs/build/lisp/hex-util /usr/local/share/emacs/site-lisp/rmail-mime/mime/pgg hides /usr/local/work/= emacs/build/lisp/pgg /usr/local/share/emacs/site-lisp/rmail-mime/mime/pgg-pgp hides /usr/local/w= ork/emacs/build/lisp/pgg-pgp /usr/local/share/emacs/site-lisp/rmail-mime/mime/pgg-def hides /usr/local/w= ork/emacs/build/lisp/pgg-def /usr/local/share/emacs/site-lisp/rmail-mime/mime/pgg-pgp5 hides /usr/local/= work/emacs/build/lisp/pgg-pgp5 /usr/local/share/emacs/site-lisp/rmail-mime/mail/hmac-def hides /usr/local/= work/emacs/build/lisp/net/hmac-def /usr/local/share/emacs/site-lisp/rmail-mime/mail/hmac-md5 hides /usr/local/= work/emacs/build/lisp/net/hmac-md5 /usr/local/share/emacs/site-lisp/rmail-mime/mail/sasl-digest hides /usr/loc= al/work/emacs/build/lisp/net/sasl-digest /usr/local/share/emacs/site-lisp/rmail-mime/mail/sasl-cram hides /usr/local= /work/emacs/build/lisp/net/sasl-cram /usr/local/share/emacs/site-lisp/rmail-mime/mail/sasl hides /usr/local/work= /emacs/build/lisp/net/sasl /usr/local/share/emacs/site-lisp/rmail-mime/mail/smtpmail hides /usr/local/= work/emacs/build/lisp/mail/smtpmail /usr/local/share/emacs/site-lisp/rmail-mime/mail/feedmail hides /usr/local/= work/emacs/build/lisp/mail/feedmail /usr/local/share/emacs/site-lisp/egg/its/thai hides /usr/local/work/emacs/b= uild/lisp/language/thai /usr/local/share/emacs/site-lisp/egg/its/greek hides /usr/local/work/emacs/= build/lisp/language/greek /usr/local/share/emacs/site-lisp/rmail-mime/mime/smime hides /usr/local/wor= k/emacs/build/lisp/gnus/smime /usr/local/work/emacs/build/lisp/language/thai-word hides ~/emacslisp/thai-= word /usr/local/work/emacs/build/lisp/textmodes/tex-mode hides ~/emacslisp/tex-m= ode /usr/local/work/emacs/build/lisp/textmodes/table hides ~/emacslisp/table /usr/local/work/emacs/build/lisp/emacs-lisp/syntax hides ~/emacslisp/syntax /usr/local/work/emacs/build/lisp/progmodes/prolog hides ~/emacslisp/prolog Features: (shadow sort gnus-util mail-extr message rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader emacsbug package time sendmail regexp-opt rmail-sa rmailsum rmail mail-utils rfc2047 rfc2045 ietf-drums mm-util mail-prsvr japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd 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 dynamic-setting system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 28 08:59:32 2010 Received: (at 6526-done) by debbugs.gnu.org; 28 Jun 2010 12:59:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTDvw-0008Cb-7e for submit@debbugs.gnu.org; Mon, 28 Jun 2010 08:59:32 -0400 Received: from smtprelay-h11.telenor.se ([62.127.194.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTDvu-0008CW-1s for 6526-done@debbugs.gnu.org; Mon, 28 Jun 2010 08:59:31 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h11.telenor.se (Postfix) with ESMTP id 4E7D014234 for <6526-done@debbugs.gnu.org>; Mon, 28 Jun 2010 14:59:24 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjU2AH45KExV4S0jPGdsb2JhbACHb5c+DAEBAQE1Lb93hSQE X-IronPort-AV: E=Sophos;i="4.53,497,1272837600"; d="scan'208";a="96299036" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 28 Jun 2010 14:59:24 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 5E5967FA05A; Mon, 28 Jun 2010 14:59:23 +0200 (CEST) Message-ID: <4C289CAB.8030903@swipnet.se> Date: Mon, 28 Jun 2010 14:59:23 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: Kenichi Handa Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6526-done Cc: 6526-done@debbugs.gnu.org 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: -2.8 (--) Kenichi Handa skrev 2010-06-28 10.15: > Font X resource settings are ignored. For instnace, I have > these settinggs: > > Emacs.Font: fontset-24 > Emacs.Fontset-0: -etl-*-medium-r-normal-*-14-*-*-*-*-*-fontset-14 > Emacs.Fontset-1: -etl-*-medium-r-normal-*-18-*-*-*-*-*-fontset-18 > Emacs.Fontset-2: -etl-*-medium-r-normal-*-20-*-*-*-*-*-fontset-20 > Emacs.Fontset-3: -etl-*-medium-r-normal-*-24-*-*-*-*-*-fontset-24 > > Before the above change, Emacs uses the font > -etl-fixed-medium-r-normal--24-...-iso8859-1, but now it > uses the font "DejaVu Sans Mono". Reverted to the old behaviour. This has the drawback that X resources override use-system-font setting. Oh well. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 29 04:15:37 2010 Received: (at 6526-done) by debbugs.gnu.org; 29 Jun 2010 08:15:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTVyj-0000wo-Hw for submit@debbugs.gnu.org; Tue, 29 Jun 2010 04:15:37 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTVyh-0000wj-AD for 6526-done@debbugs.gnu.org; Tue, 29 Jun 2010 04:15:36 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o5T8FTLo000727; Tue, 29 Jun 2010 17:15:29 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o5T8FTCM023588; Tue, 29 Jun 2010 17:15:29 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id o5T8FS5Y016242; Tue, 29 Jun 2010 17:15:28 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1OTVya-0000ih-D0; Tue, 29 Jun 2010 17:15:28 +0900 From: Kenichi Handa To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored In-Reply-To: <4C289CAB.8030903@swipnet.se> (message from =?us-ascii?Q?=3D?= =?us-ascii?Q?=3FISO-8859-1=3FQ=3FJan=5FDj=3DE4rv=3F=3D?= on Mon, 28 Jun 2010 14:59:23 +0200) References: <4C289CAB.8030903@swipnet.se> Date: Tue, 29 Jun 2010 17:15:28 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6526-done Cc: 6526-done@debbugs.gnu.org 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: -2.6 (--) In article <4C289CAB.8030903@swipnet.se>, Jan Dj=E4rv = writes: > Kenichi Handa skrev 2010-06-28 10.15: > > Font X resource settings are ignored. For instnace, I have > > these settinggs: > > > > Emacs.Font: fontset-24 > > Emacs.Fontset-0: -etl-*-medium-r-normal-*-14-*-*-*-*-*-fontset-14 > > Emacs.Fontset-1: -etl-*-medium-r-normal-*-18-*-*-*-*-*-fontset-18 > > Emacs.Fontset-2: -etl-*-medium-r-normal-*-20-*-*-*-*-*-fontset-20 > > Emacs.Fontset-3: -etl-*-medium-r-normal-*-24-*-*-*-*-*-fontset-24 > > > > Before the above change, Emacs uses the font > > -etl-fixed-medium-r-normal--24-...-iso8859-1, but now it > > uses the font "DejaVu Sans Mono". > Reverted to the old behaviour. Thank you. I confirmed that the original behavior is recovered. > This has the drawback that X resources override > use-system-font setting. Oh well. What is "use-system-font setting"? Does it work if I don't have Font X resource? --- Kenichi Handa handa@m17n.org From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 29 05:19:56 2010 Received: (at 6526-done) by debbugs.gnu.org; 29 Jun 2010 09:19:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTWyx-0001P3-Nk for submit@debbugs.gnu.org; Tue, 29 Jun 2010 05:19:55 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTWyv-0001Ow-QA for 6526-done@debbugs.gnu.org; Tue, 29 Jun 2010 05:19:54 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 360AAFE57 for <6526-done@debbugs.gnu.org>; Tue, 29 Jun 2010 11:19:49 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkszAOVXKUxV4S0jPGdsb2JhbACfOgwBAQEBNS2+e4UkBA X-IronPort-AV: E=Sophos;i="4.53,503,1272837600"; d="scan'208";a="539185004" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 29 Jun 2010 11:19:49 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 102087FA05A; Tue, 29 Jun 2010 11:19:49 +0200 (CEST) Message-ID: <4C29BAB4.4070304@swipnet.se> Date: Tue, 29 Jun 2010 11:19:48 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: Kenichi Handa Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored References: <4C289CAB.8030903@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 6526-done Cc: 6526-done@debbugs.gnu.org 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: -3.3 (---) Kenichi Handa skrev 2010-06-29 10.15: > >> This has the drawback that X resources override >> use-system-font setting. Oh well. > > What is "use-system-font setting"? Emacs uses the font set in the desktop preferences in Gnome, i.e. from GConf. > Does it work if I don't have Font X resource? Yes. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 01:41:29 2010 Received: (at 6526-done) by debbugs.gnu.org; 30 Jun 2010 05:41:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTq37-0003FW-AO for submit@debbugs.gnu.org; Wed, 30 Jun 2010 01:41:29 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTq34-0003FQ-Um for 6526-done@debbugs.gnu.org; Wed, 30 Jun 2010 01:41:28 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o5U5fLO9003261; Wed, 30 Jun 2010 14:41:21 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o5U5fK8E028071; Wed, 30 Jun 2010 14:41:20 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id o5U5fKJX021032; Wed, 30 Jun 2010 14:41:20 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1OTq2x-0002Fg-Sg; Wed, 30 Jun 2010 14:41:19 +0900 From: Kenichi Handa To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored In-Reply-To: <4C29BAB4.4070304@swipnet.se> (message from =?us-ascii?Q?=3D?= =?us-ascii?Q?=3FISO-8859-1=3FQ=3FJan=5FDj=3DE4rv=3F=3D?= on Tue, 29 Jun 2010 11:19:48 +0200) References: <4C289CAB.8030903@swipnet.se> <4C29BAB4.4070304@swipnet.se> Date: Wed, 30 Jun 2010 14:41:19 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6526-done Cc: 6526-done@debbugs.gnu.org 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: -2.6 (--) In article <4C29BAB4.4070304@swipnet.se>, Jan Dj=E4rv = writes: > > What is "use-system-font setting"? > Emacs uses the font set in the desktop preferences in Gnome, i.e. from GC= onf. > > Does it work if I don't have Font X resource? > Yes. On Ubuntu, I removed all X resouses, ran the program gnome-appearance-properties, opened "Fonts" tab, set "Application font" to "Freemono Medium 10", then ran Emacs. But the font used was "Dejavu Sans Mono", not "Freemono". Is gnome-appearance-properties not that right program to set "the desktop preferences"? --- Kenichi Handa handa@m17n.org From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 02:49:14 2010 Received: (at 6526-done) by debbugs.gnu.org; 30 Jun 2010 06:49:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTr6g-0003h6-2m for submit@debbugs.gnu.org; Wed, 30 Jun 2010 02:49:14 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTr6d-0003h0-Cr for 6526-done@debbugs.gnu.org; Wed, 30 Jun 2010 02:49:12 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 52096DCA7 for <6526-done@debbugs.gnu.org>; Wed, 30 Jun 2010 08:49:06 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak8wADKGKkxV4S0jPGdsb2JhbACHb5dnDAEBAQE1Lb9rhSQE X-IronPort-AV: E=Sophos;i="4.53,510,1272837600"; d="scan'208";a="539580138" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 30 Jun 2010 08:48:55 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id AB97D7FA05A; Wed, 30 Jun 2010 08:48:54 +0200 (CEST) Message-ID: <4C2AE8D6.1070800@swipnet.se> Date: Wed, 30 Jun 2010 08:48:54 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: Kenichi Handa Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored References: <4C289CAB.8030903@swipnet.se> <4C29BAB4.4070304@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6526-done Cc: 6526-done@debbugs.gnu.org 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: -2.8 (--) Kenichi Handa skrev 2010-06-30 07.41: > In article<4C29BAB4.4070304@swipnet.se>, Jan Dj=E4rv writes: > >>> What is "use-system-font setting"? > >> Emacs uses the font set in the desktop preferences in Gnome, i.e. from= GConf. > >>> Does it work if I don't have Font X resource? > >> Yes. > > On Ubuntu, I removed all X resouses, ran the program > gnome-appearance-properties, opened "Fonts" tab, set > "Application font" to "Freemono Medium 10", then ran Emacs. > But the font used was "Dejavu Sans Mono", not "Freemono". Application font is not what we use, it is Monospaced font. Other things= to=20 check for: Did you compile --with-gconf (the default if GConf libraries are found) a= nd=20 customize font-use-system-font to t? You can check for feature system-font-setting in Emacs, it is set if GCon= f is=20 compiled in. The function font-get-system-font should return the system=20 monospaced font. You can get application font by calling=20 font-get-system-normal-font. > > Is gnome-appearance-properties not that right program to set > "the desktop preferences"? It is the right program. Jan D, From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 03:41:45 2010 Received: (at 6526-done) by debbugs.gnu.org; 30 Jun 2010 07:41:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTrvU-00041m-RV for submit@debbugs.gnu.org; Wed, 30 Jun 2010 03:41:45 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTrvS-00041h-8d for 6526-done@debbugs.gnu.org; Wed, 30 Jun 2010 03:41:43 -0400 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o5U7faqO003033; Wed, 30 Jun 2010 16:41:36 +0900 (JST) env-from (handa@m17n.org) Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o5U7fahr011674; Wed, 30 Jun 2010 16:41:36 +0900 (JST) env-from (handa@m17n.org) Received: by smtp1.aist.go.jp with ESMTP id o5U7fZxm013732; Wed, 30 Jun 2010 16:41:35 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1OTrvL-0002Y1-ND; Wed, 30 Jun 2010 16:41:35 +0900 From: Kenichi Handa To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored In-Reply-To: <4C2AE8D6.1070800@swipnet.se> (message from =?us-ascii?Q?=3D?= =?us-ascii?Q?=3FISO-8859-1=3FQ=3FJan=5FDj=3DE4rv=3F=3D?= on Wed, 30 Jun 2010 08:48:54 +0200) References: <4C289CAB.8030903@swipnet.se> <4C29BAB4.4070304@swipnet.se> <4C2AE8D6.1070800@swipnet.se> Date: Wed, 30 Jun 2010 16:41:35 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6526-done Cc: 6526-done@debbugs.gnu.org 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: -2.6 (--) In article <4C2AE8D6.1070800@swipnet.se>, Jan Dj=E4rv = writes: > Application font is not what we use, it is Monospaced font. Other things= to=20 > check for: Ah! Perhaps you actually mean "Fixed width font". When I change it from "monospace" to "freemono", Emacs surely uses "freemono" font. > Did you compile --with-gconf (the default if GConf libraries are found) Yes. src/config.h contains this line: /* Define to 1 if using GConf. */ #define HAVE_GCONF 1 > and customize font-use-system-font to t? No. The docstring says "*Non-nil means to use the system defined font.", but doesn't say what "nil" means. Anyway, if there's no Font X resource, it seems that Emacs uses the system defined font even if font-use-system-font is nil. Previously, if there's no Font X resource, Emacs tried to use one of these predefined fonts (extracted from x_default_font_parameter): char *names[] =3D { #ifdef HAVE_XFT /* This will find the normal Xft font. */ "monospace-10", #endif "-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1", "-misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-1", "-*-*-medium-r-normal-*-*-140-*-*-c-*-iso8859-1", /* This was formerly the first thing tried, but it finds too many fonts and takes too long. */ "-*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1", /* If those didn't work, look for something which will at least work. */ "-*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1", "fixed", NULL }; So, the current behaviour is still different from the previous one. Though I'm not claiming that the current behaviour is worse. > You can check for feature system-font-setting in Emacs, it is set if GCon= f is=20 > compiled in. (featurep 'system-font-setting) =3D> t > The function font-get-system-font should return the system=20 > monospaced font. You can get application font by calling=20 > font-get-system-normal-font. Both return nil. When I customize font-use-system-font to t, they return correct font names. It's a little bit strange behavior. I think they should return font names even if font-use-system-font is non-nil. --- Kenichi Handa handa@m17n.org From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 05:30:38 2010 Received: (at 6526-done) by debbugs.gnu.org; 30 Jun 2010 09:30:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTtcr-0004lS-VX for submit@debbugs.gnu.org; Wed, 30 Jun 2010 05:30:38 -0400 Received: from smtprelay-h31.telenor.se ([213.150.131.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTtcp-0004lL-SN for 6526-done@debbugs.gnu.org; Wed, 30 Jun 2010 05:30:36 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id 230A6E88F9 for <6526-done@debbugs.gnu.org>; Wed, 30 Jun 2010 11:30:31 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak8wAHerKkxV4S0jPGdsb2JhbACHb5drDAEBAQE1Lb9PhSQEhAs X-IronPort-AV: E=Sophos;i="4.53,511,1272837600"; d="scan'208";a="97195131" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 30 Jun 2010 11:30:31 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 15F667FA05A; Wed, 30 Jun 2010 11:30:31 +0200 (CEST) Message-ID: <4C2B0EB6.9090409@swipnet.se> Date: Wed, 30 Jun 2010 11:30:30 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: Kenichi Handa Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored References: <4C289CAB.8030903@swipnet.se> <4C29BAB4.4070304@swipnet.se> <4C2AE8D6.1070800@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6526-done Cc: 6526-done@debbugs.gnu.org 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: -2.8 (--) Kenichi Handa skrev 2010-06-30 09.41: > In article<4C2AE8D6.1070800@swipnet.se>, Jan Dj=E4rv writes: > >> Application font is not what we use, it is Monospaced font. Other thi= ngs to >> check for: > > Ah! Perhaps you actually mean "Fixed width font". When I > change it from "monospace" to "freemono", Emacs surely uses > "freemono" font. Yes, I meant Fixed width. I didn't have the actual screen in front of me= . >> and customize font-use-system-font to t? > > No. The docstring says "*Non-nil means to use the system > defined font.", but doesn't say what "nil" means. Anyway, > if there's no Font X resource, it seems that Emacs uses the > system defined font even if font-use-system-font is nil. I'll improve the documentation. > > Previously, if there's no Font X resource, Emacs tried to > use one of these predefined fonts (extracted from > x_default_font_parameter): > > char *names[] > =3D { > #ifdef HAVE_XFT > /* This will find the normal Xft font. */ > "monospace-10", > #endif > "-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1", > "-misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-1", > "-*-*-medium-r-normal-*-*-140-*-*-c-*-iso8859-1", > /* This was formerly the first thing tried, but it finds > too many fonts and takes too long. */ > "-*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1", > /* If those didn't work, look for something which will > at least work. */ > "-*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1", > "fixed", > NULL }; > > So, the current behaviour is still different from the > previous one. Though I'm not claiming that the current > behaviour is worse. > It is the same old startup problem. For the first frame we don't know if= =20 font-use-system-font is set as .emacs has not been read when the code abo= ve is=20 run. So we suggest the system font anyway, it is as good a suggestion as= any=20 other font. Better in fact, we can be sure that font exists and is proba= bly=20 familiar to the user if gedit or gnome-terminal has been used. >> You can check for feature system-font-setting in Emacs, it is set if G= Conf is >> compiled in. > > (featurep 'system-font-setting) =3D> t > >> The function font-get-system-font should return the system >> monospaced font. You can get application font by calling >> font-get-system-normal-font. > > Both return nil. > > When I customize font-use-system-font to t, they return > correct font names. It's a little bit strange behavior. I > think they should return font names even if > font-use-system-font is non-nil. > It was needed at some point, but I think that is not the case anymore. I= 'll=20 check. font-use-system-font controls if Emacs changes its fonts on the f= ly=20 when the system font is changed. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 01 02:38:50 2010 Received: (at 6526-done) by debbugs.gnu.org; 1 Jul 2010 06:38:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUDQA-00087V-2f for submit@debbugs.gnu.org; Thu, 01 Jul 2010 02:38:50 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUDQ7-00087Q-9T for 6526-done@debbugs.gnu.org; Thu, 01 Jul 2010 02:38:48 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o616cfqt029114; Thu, 1 Jul 2010 15:38:41 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o616cfPA009915; Thu, 1 Jul 2010 15:38:41 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id o616ceLO025027; Thu, 1 Jul 2010 15:38:40 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1OUDQ0-0005h9-Cp; Thu, 01 Jul 2010 15:38:40 +0900 From: Kenichi Handa To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored In-Reply-To: <4C2B0EB6.9090409@swipnet.se> (message from =?us-ascii?Q?=3D?= =?us-ascii?Q?=3FISO-8859-1=3FQ=3FJan=5FDj=3DE4rv=3F=3D?= on Wed, 30 Jun 2010 11:30:30 +0200) References: <4C289CAB.8030903@swipnet.se> <4C29BAB4.4070304@swipnet.se> <4C2AE8D6.1070800@swipnet.se> <4C2B0EB6.9090409@swipnet.se> Date: Thu, 01 Jul 2010 15:38:40 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6526-done Cc: 6526-done@debbugs.gnu.org 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: -2.6 (--) In article <4C2B0EB6.9090409@swipnet.se>, Jan Dj=E4rv = writes: > I'll improve the documentation. Thank you. The new ones are much better. > It is the same old startup problem. For the first frame we don't know if= =20 > font-use-system-font is set as .emacs has not been read when the code abo= ve is=20 > run. So we suggest the system font anyway, it is as good a suggestion as= any=20 > other font. Better in fact, we can be sure that font exists and is proba= bly=20 > familiar to the user if gedit or gnome-terminal has been used. I see. > It was needed at some point, but I think that is not the case anymore. I= 'll=20 > check. font-use-system-font controls if Emacs changes its fonts on the f= ly=20 > when the system font is changed. I confirmed that now font-get-*-font works even if font-use-system-font is nil, thank you. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 12:51:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Jul 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator