From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Default font (doc bug?) Date: Mon, 14 May 2007 12:14:31 +0200 Message-ID: <46483687.9010205@swipnet.se> References: <876476n9r9.fsf@escher.local.home> 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: sea.gmane.org 1179137734 22069 80.91.229.12 (14 May 2007 10:15:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 May 2007 10:15:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 14 12:15:32 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HnXaT-00078l-IZ for ged-emacs-devel@m.gmane.org; Mon, 14 May 2007 12:15:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnXiD-0002qo-Jl for ged-emacs-devel@m.gmane.org; Mon, 14 May 2007 06:23:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HnXiA-0002qj-DH for emacs-devel@gnu.org; Mon, 14 May 2007 06:23:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HnXi7-0002oH-8r for emacs-devel@gnu.org; Mon, 14 May 2007 06:23:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnXi7-0002o4-3K for emacs-devel@gnu.org; Mon, 14 May 2007 06:23:23 -0400 Original-Received: from av11-1-sn2.hy.skanova.net ([81.228.8.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HnXaM-0005MP-0L for emacs-devel@gnu.org; Mon, 14 May 2007 06:15:22 -0400 Original-Received: by av11-1-sn2.hy.skanova.net (Postfix, from userid 502) id 39EA53813F; Mon, 14 May 2007 12:15:21 +0200 (CEST) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av11-1-sn2.hy.skanova.net (Postfix) with ESMTP id 0F7AB38131; Mon, 14 May 2007 12:15:21 +0200 (CEST) Original-Received: from husetbladh.homeip.net (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id EB08237E43; Mon, 14 May 2007 12:15:20 +0200 (CEST) User-Agent: Thunderbird 1.5.0.10 (X11/20070302) In-Reply-To: <876476n9r9.fsf@escher.local.home> X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71018 Archived-At: Can it be that Emacs picks up some X resource that sets the font? Jan D. Stephen Berman skrev: > How is the default font used by Emacs determined? The only specific > reference I found in the manuals is in (emacs)Font X: > > The default font used by Emacs (under X) is: > > -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1 > > This is from my Emacs manual (in GNU Emacs 22.1.50.1 > (i686-pc-linux-gnu, GTK+ Version 2.10.6) of 2007-04-30). (The Elisp > manual, AFAICT, just makes reference to the default font without > either saying what it is or how it is chosen.) But when I start Emacs > with -Q, the value of x-fixed-font-alist contains this: > > ("Font menu" > ("Misc" > ("Default" "-*-fixed-medium-r-*--16-*-*-*-*-*-fontset-16") > ...)) > > and the value of (frame-parameters) contains this: > > (font . "-*-fixed-medium-r-*--16-*-*-*-*-*-fontset-16") > > I have emacs executables from previous builds, and those going back to > and including emacs-22.0.92 of 2007-01-22 show the same values as the > above with emacs -Q. But in emacs-22.0.91 of 2006-12-16 the value of > x-fixed-font-alist contains this: > > ("Font menu" > ("Misc" > ("Default" "-Adobe-Courier-Medium-R-Normal--12-120-75-75-M-70-ISO8859-1") > ...)) > > and the value of (frame-parameters) contains this: > > (font . "-Adobe-Courier-Medium-R-Normal--12-120-75-75-M-70-ISO8859-1") > > This looks more in accord with the current Emacs manual, so is the > manual out of date? And what, where, and when was the change that > changed the default font? I couldn't find anything in the ChangeLogs > that referred to this, but I haven't been able to figure where the > default font comes from, so I probably overlooked it. I note that all > the executables I have, including 22.0.91, have the same value of > standard-fontset-spec: > > "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard, > chinese-gb2312:-*-medium-r-normal-*-16-*-gb2312*-*, > korean-ksc5601:-*-medium-r-normal-*-16-*-ksc5601*-*, > chinese-cns11643-1:-*-medium-r-normal-*-16-*-cns11643*-1, > chinese-cns11643-2:-*-medium-r-normal-*-16-*-cns11643*-2, > chinese-cns11643-3:-*-medium-r-normal-*-16-*-cns11643*-3, > chinese-cns11643-4:-*-medium-r-normal-*-16-*-cns11643*-4, > chinese-cns11643-5:-*-medium-r-normal-*-16-*-cns11643*-5, > chinese-cns11643-6:-*-medium-r-normal-*-16-*-cns11643*-6, > chinese-cns11643-7:-*-medium-r-normal-*-16-*-cns11643*-7" > > All executables were built under the same X server version, but > 22.0.91 was built with GTK+ Version 2.8.10, whereas starting with > 22.0.92 and up to my current build of 22.1.50, GTK+ is Version 2.10.6. > But presumably GTK+ is not responsible for the default font > difference, since I have also an executable of 22.0.90 built with the > Lucid toolkit and it shows the same font values as the GTK+ build of > 22.0.91. > > So how is the default font determined, and is there a doc bug in > (emacs)Font X? Thanks, > > Steve Berman > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel