From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: What is a default font? Date: Fri, 06 Dec 2019 17:14:55 +0200 Message-ID: <835zith4eo.fsf@gnu.org> References: <4c86b07f-175d-f6cf-171a-b58474ab717a@gmx.at> <83tv6ghxxk.fsf@gnu.org> <36fc3581-f8b9-cfbb-7455-eaccf9fe3c4a@gmx.at> <83y2vqhcnp.fsf@gnu.org> <0fb8540a-5edd-53ee-a02f-51960af2821b@gmx.at> <83v9quhahx.fsf@gnu.org> <2e7821ab-0ebc-fe80-8faa-faebf36dec82@gmx.at> <83tv6eh9fv.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207465"; mail-complaints-to="usenet@blaine.gmane.org" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 06 18:19:46 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1idHGZ-000rlS-Vh for ged-emacs-devel@m.gmane.org; Fri, 06 Dec 2019 18:19:44 +0100 Original-Received: from localhost ([::1]:41704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idHGY-0008Jm-A0 for ged-emacs-devel@m.gmane.org; Fri, 06 Dec 2019 12:19:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43388) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idGBy-0004jp-Tr for emacs-devel@gnu.org; Fri, 06 Dec 2019 11:10:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1idGBy-0007Qz-I3; Fri, 06 Dec 2019 11:10:54 -0500 Original-Received: from [176.228.60.248] (port=4540 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1idFJp-0003GU-Bl; Fri, 06 Dec 2019 10:14:57 -0500 In-reply-to: (message from martin rudalics on Fri, 6 Dec 2019 09:35:46 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243182 Archived-At: > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > From: martin rudalics > Date: Fri, 6 Dec 2019 09:35:46 +0100 > > ((and (display-multi-font-p (frame-parameter frame 'display)) display-multi-font-p can be passed the frame itself, you don't need to pass the frame's display explicitly. > (not (string-equal (frame-parameter frame 'font) default-font))) > (aref (font-info default-font frame) 3)) Not sure I get the logic here: you use default-font if the frame's font is NOT the default-font? > And I'd still like to know what 'face-new-frame-defaults' is really > used for. The commentary at the beginning of xfaces.c says: There is also a global face alist `Vface_new_frame_defaults'. Face definitions from this list are used to initialize faces of newly created frames. If this is unclear, please ask more specific questions.