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: Setting face attribute with height specification Date: Sun, 23 Jun 2024 20:54:14 +0300 Message-ID: <86wmmfczp5.fsf@gnu.org> References: <86h6dkfdpf.fsf@gnu.org> <7ENMbfmsS3kQjiAHxcXCOc8b__7oSsPASmqU9AnYpOZHqLGhU0Eyz8omljhi_TmOgfe1FC0LAJEtO3peOcsN2uNA-Eh0LLEOyq3YBX_muSA=@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21857"; 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 19:54:51 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 1sLRQQ-0005XK-Q2 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 19:54:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLRPx-0003tN-D5; Sun, 23 Jun 2024 13:54:21 -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 1sLRPu-0003rS-Nx for help-gnu-emacs@gnu.org; Sun, 23 Jun 2024 13:54:19 -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 1sLRPu-00056z-FS for help-gnu-emacs@gnu.org; Sun, 23 Jun 2024 13:54:18 -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=quFfvcUUtQP06pKZP2bVJPOPyT7Od4vSHixpUio5AEo=; b=b/tp+fyG7bLC ozVEpu/L5XEKZtV9G7+7UQfxXaMyDLFVrPn46KWtrnt4yKgEYCxfSn6zdHKvPZhYVvGmTQOqen6zz XDLfliS00rqx83fUjsk2yXIaRhY6YRjm76c+x6nXl4J2kNbE19PdY5TI4GnUyEKMFtt62QpmwZl2D 6rf/LnxhyjrXYpl039yGjUg5duPM6qJ9KmiS2WBO28KVWeGNjUPf8IjRzZoB84sT6+Fi2ijPV+x2O B59szU564RSfAo+/vjD4nZFnHJkXLs4A/+Qm9x5wAh5cfm0+UG4WWOFEPbGhuPifWvjLxyy7L7Xk2 nMWfz1CtR4z6wFFi5ugv8A==; In-Reply-To: <7ENMbfmsS3kQjiAHxcXCOc8b__7oSsPASmqU9AnYpOZHqLGhU0Eyz8omljhi_TmOgfe1FC0LAJEtO3peOcsN2uNA-Eh0LLEOyq3YBX_muSA=@protonmail.com> (message from Heime on Sun, 23 Jun 2024 17:31:02 +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:146959 Archived-At: > Date: Sun, 23 Jun 2024 17:31:02 +0000 > From: Heime > Cc: Eli Zaretskii , help-gnu-emacs@gnu.org > > > On Sunday, June 23rd, 2024 at 2:58 PM, Heime wrote: > > > On Sunday, June 23rd, 2024 at 5:08 AM, Eli Zaretskii eliz@gnu.org wrote: > > > > > > Date: Sat, 22 Jun 2024 21:59:55 +0000 > > > > From: Heime heimeborgia@protonmail.com > > > > > > > > Is there a possibility to sent the font height when using these > > > > > > > > (set-face-attribute 'default nil :font "URW Chancery L") > > > > > > > > (set-face-attribute 'default nil :font "UnPilgia") > > > > > > Yes, but only if you use :family, not :font. You should use :family > > > and :height attributes. Using :font specifies the font and its > > > height. > > > > > > Could not get tho family to be set correctly with > > The following is telling me > > Invalid face attribute :height (string-to-number face-height) > > > (buffer-face-mode-invoke > > '(:family "URW Chancery L" :height (string-to-number face-height)) t) > > And this does not change the family (when using "Wargames" for instance) > > > (set-face-attribute 'default nil > > :family "URW Chancery L" :height (string-to-number face-height)) Maybe you use incorrect family name? The list of available families is produced by the function font-family-list.