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.devel Subject: Re: Font weight selection problem Date: Tue, 23 Jan 2024 19:28:14 +0200 Message-ID: <86il3k558x.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16014"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Nicolas P. Rougier (inria)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 23 18:28:54 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rSKZx-0003y6-MY for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Jan 2024 18:28:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSKZM-0005zY-Go; Tue, 23 Jan 2024 12:28:16 -0500 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 1rSKZL-0005zP-29 for emacs-devel@gnu.org; Tue, 23 Jan 2024 12:28:15 -0500 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 1rSKZJ-00053Q-M1; Tue, 23 Jan 2024 12:28:13 -0500 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=o3k2jfn6BMgg0uhmjP+00y0kK2VzmneW7JOW5RCDB1w=; b=jqxJjLc0KY4T nKDhk0Sv9AiIGQRgc5d2T1jL3wean7ivenhdI2InPt2hf+6SRVQTILjrnxUnWQVmi12mCnjnaFh9C H91qCbt0dFOzUBY2Jya70uqS7Os3kG9RascfcRoI6IA54o9G7GvkN3k8iHEvQkXr6T1z3JpfHvsuF vuTQPdF3fczLSIyxIlIlbiGiyMRLrO4nhg3kk8BEv5JDMNYBqGSr9VpfZuaH7pBJ4WZHzaM9EV8i/ bEFH5NJhGNvjMKVc46w+wea05a/JBpPWoveVtDuI7z0+RRX6Si4pWWihBeNNPt3mqb1I+JW4SXIfg KuwfTsjeEn2kDKx87EY8fg==; In-Reply-To: (nicolas.rougier@inria.fr) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315262 Archived-At: > From: "Nicolas P. Rougier (inria)" > Date: Sun, 21 Jan 2024 18:41:42 +0100 > > I'm using Emacs 29.2 on OSX and I'm having difficulty selecting a > font with the proper weight. The following simple script shows the > problem on my machine: > > (set-frame-font "Roboto Mono-14:light") > (insert "test") > (insert (propertize "test" 'face '(:family "Roboto Mono" :weight > light))) > > The set-frame-font installs the proper font and weight. > The first insert displays the text with light weight (as expected) > The second insert displays the text with a *regular* weight > (unexpected). Did you try to change the order between :family and :weight in your 'propertize' call? > I think the problem has been here since at least version 28.0 I'm not sure it was ever supported. Can you make that do what you expect in older versions of Emacs?