From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Default face problem Date: Mon, 08 May 2006 10:47:10 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147078264 8708 80.91.229.2 (8 May 2006 08:51:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 May 2006 08:51:04 +0000 (UTC) Cc: wilde@sha-bang.de, jyavner@member.fsf.org, rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 08 10:50:58 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 1Fd1SE-0002Ah-3R for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 10:50:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd1SD-0004CS-JR for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 04:50:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fd1QJ-0003GW-3m for emacs-devel@gnu.org; Mon, 08 May 2006 04:48:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fd1QG-0003EZ-Vc for emacs-devel@gnu.org; Mon, 08 May 2006 04:48:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd1QG-0003EJ-I1 for emacs-devel@gnu.org; Mon, 08 May 2006 04:48:56 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fd1R1-0000vn-Pa; Mon, 08 May 2006 04:49:44 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 269ABFAC097; Mon, 8 May 2006 10:48:50 +0200 (CEST) Original-To: Kenichi Handa In-Reply-To: (Kenichi Handa's message of "Mon, 08 May 2006 14:51:30 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:54072 Kenichi Handa writes: >> 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? I don't know :-) Those two lines are pseudo-code... I'm not a font expert, so I was hoping somebody knew the correct way to do this. I guess x_set_font in frame.c need to be involved somehow. -- Kim F. Storm http://www.cua.dk