From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Default font (doc bug?) Date: Sun, 06 May 2007 01:14:34 +0200 Message-ID: <876476n9r9.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1178406904 28253 80.91.229.12 (5 May 2007 23:15:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 May 2007 23:15:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 06 01:15:03 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 1HkTSw-0006qN-N1 for ged-emacs-devel@m.gmane.org; Sun, 06 May 2007 01:15:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HkTZj-0003u1-L1 for ged-emacs-devel@m.gmane.org; Sat, 05 May 2007 19:22:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HkTZg-0003q4-3b for emacs-devel@gnu.org; Sat, 05 May 2007 19:22:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HkTZf-0003oM-Bp for emacs-devel@gnu.org; Sat, 05 May 2007 19:21:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HkTZf-0003no-4x for emacs-devel@gnu.org; Sat, 05 May 2007 19:21:59 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HkTSr-0007qC-4r for emacs-devel@gnu.org; Sat, 05 May 2007 19:14:57 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HkTSi-0002nZ-55 for emacs-devel@gnu.org; Sun, 06 May 2007 01:14:48 +0200 Original-Received: from i577bd67c.versanet.de ([87.123.214.124]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 May 2007 01:14:48 +0200 Original-Received: from Stephen.Berman by i577bd67c.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 May 2007 01:14:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 67 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bd67c.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:70570 Archived-At: 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