From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Default face problem Date: Mon, 08 May 2006 14:51:30 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1147067530 12484 80.91.229.2 (8 May 2006 05:52:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 May 2006 05:52:10 +0000 (UTC) Cc: wilde@sha-bang.de, jyavner@member.fsf.org, emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 08 07:52:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fcyf9-00071M-Gs for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 07:52:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fcyf8-0003oG-Kw for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 01:52:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fcyeu-0003o8-9z for emacs-devel@gnu.org; Mon, 08 May 2006 01:51:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fcyet-0003nq-94 for emacs-devel@gnu.org; Mon, 08 May 2006 01:51:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fcyet-0003nk-1R for emacs-devel@gnu.org; Mon, 08 May 2006 01:51:51 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fcyfd-000432-9f; Mon, 08 May 2006 01:52:37 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k485pWrv016735; Mon, 8 May 2006 14:51:33 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k485pUel015955; Mon, 8 May 2006 14:51:31 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FcyeY-0002XG-00; Mon, 08 May 2006 14:51:30 +0900 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:54060 Archived-At: In article , storm@cua.dk (Kim F. Storm) writes: > But why does it think it is ok to use such a font as the > frame's default font? I don't know why. Perhaps, Gerd just overlooked such a possibility. > The problem we see is because the :align-to specs in the header line > are formatted based on the width of the frame's default font, but if > the default font is not used in the frame text, the result is very > confusing. I see. > Wouldn't it make sense to fix the frame's default font at this > step (eg. in realize_basic_faces) when it is detected that > the specified default font is "not available". I agree. > IIRC, setting the frame default font is a little > more trick than a mere assignment, so I should have written: > > if (frame->default_face->font != frame->default_font) > set_frame_default_font(frame, frame->default_face->font; Where is set_frame_default_font? --- Kenichi Handa handa@m17n.org