From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: set-frame-font and set-face-attribute Date: Sun, 23 Jun 2024 07:47:59 +0300 Message-ID: <86msncfeo0.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1281"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 23 06:48:23 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sLF9J-000Aco-Jk for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 06:48:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLF90-000404-55; Sun, 23 Jun 2024 00:48:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLF8y-0003zv-V7 for help-gnu-emacs@gnu.org; Sun, 23 Jun 2024 00:48:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLF8y-0006uQ-ND for help-gnu-emacs@gnu.org; Sun, 23 Jun 2024 00:48:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fI/1ntLBMkhwS1Yq1f5pc1tHgWiM/DqtqZNKJGoze6c=; b=niptv91KF59i MugSchILXVUQN/E5jdpmbSrCv/a43ecDK9z0t3I4CgaSIOp0qGW6QH6qsXaDfuIY0tDwpNyrIOU2R ZyVYrKw5Lqc98xPzN1ukOmqu8N5/dHGWQuquZHQOsSh/IIbegzMZe3YLCzSYpEdGgJH8+YvpUIq6a 890k0u63S36BCF7oPu9qqBaa1NgdzwZ/sThdQKds/KbT70HwlENeI/ZePYoxqInQ37ea2HdqT0c4B oYf1ypKSJircmHdjXS/CmPRNj3vFBJq6N+2JS40HCT3HmKKkGanHR7VaogNbgAUW0GTjpOEgJqA1k Fo+t1nxyn8MQcKF3tMeTwA==; In-Reply-To: (message from Heime on Sat, 22 Jun 2024 20:23:29 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146947 Archived-At: > Date: Sat, 22 Jun 2024 20:23:29 +0000 > From: Heime > > > What is the important difference between > > (set-frame-font "URW Chancery L-12" nil t) > > and > > (set-face-attribute 'default nil :font "URW Chancery L-12") Basically, no difference. set-frame-font calls set-face-attribute internally. > In what circumstances would one need one over the other ? set-frame-font can control what happens to the frame size, otherwise there's no significant difference.