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: Imposible to set :weight Light for a font Date: Tue, 05 Jul 2022 18:53:22 +0300 Message-ID: <831quz8sjx.fsf@gnu.org> References: <992e9cd2-3aba-4868-8b59-872187a4fbe2@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6476"; 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 Tue Jul 05 17:54:14 2022 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 1o8ksQ-0001Sw-0h for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Jul 2022 17:54:14 +0200 Original-Received: from localhost ([::1]:34666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8ksO-0007db-QC for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Jul 2022 11:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8krh-0007bs-MJ for help-gnu-emacs@gnu.org; Tue, 05 Jul 2022 11:53:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8krh-00023L-6H for help-gnu-emacs@gnu.org; Tue, 05 Jul 2022 11:53:29 -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=CA++uNm8P5ecWLfM4g8Iz3IML+DzStfTa6j/rGmUuKQ=; b=AoBJCcucVTfu sNQfXMop2txTSpQh+JtdfY668+wk1f9+6XUqq+s0mfGngfCRrByZbmJgrG1hyTq77PahN23Mtd7Sb +yrslpvCdQpi8fO3EW7rJSMAuCeIlu06CeiTrCRIXNO2fnLm6zhNOusAwNjmixOMMU6diq1wYItqm 1bnGi3VtM6OOPQGWT0TeO02qqCPETYNqb6r+YEu8WsgN/qftidod2hq0qBmbKBmrS8xXVtQZzK1a5 yc2s/GIGudllhP1Q6pLqRb5FYxcByWPBLSqPRtdqFB/Muxw366jWRTIMcGmoV4ecHRUPjKWPtdVzN ktqt3tGQWjTFxfdL4WPWrw==; Original-Received: from [87.69.77.57] (port=3599 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8krg-0006H0-MZ for help-gnu-emacs@gnu.org; Tue, 05 Jul 2022 11:53:29 -0400 In-Reply-To: <992e9cd2-3aba-4868-8b59-872187a4fbe2@gmail.com> (message from ypuntot on Tue, 5 Jul 2022 15:40:10 +0000 (UTC)) 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" Xref: news.gmane.io gmane.emacs.help:138315 Archived-At: > Date: Tue, 5 Jul 2022 15:40:10 +0000 (UTC) > From: ypuntot > > I can't set ":weight Light" for a font. > > > If I set it using the "Menu, Options, Set Default font, Cascadia Mono - style Light"; the text in the buffer changes correctly; > > https://i.postimg.cc/htZ4rL2w/1.jpg > > but in the init.el the :family changes into "Cascadia Mono Light". > > https://i.postimg.cc/VL3Dbp8H/2.jpg > > When restarting, it seems that family "Cascadia Mono Light" doesn't exist, so the default font family changes by itself into "Frank Ruhl Hofshi". > > In the customization buffer family is "Frank Ruhl Hofshi", > > https://i.postimg.cc/y8Kg3yDz/3.jpg > > but in the init.el family is "Cascadia Mono Light". > > https://i.postimg.cc/XqFqpr3J/4.jpg On what OS is this? If it's MS-Windows, then the 'light' weight is not really supported, because the Windows API that enumerate fonts of a given family don't consider 'light' to belong to the family. They only recognize 'regular', 'bold', 'italic', and 'bold-italic' as members of the same font family.