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: Incorrect font weight selected Date: Fri, 17 Dec 2021 20:55:04 +0200 Message-ID: <83r1abcb93.fsf@gnu.org> References: <87pmpv708h.fsf@wavexx.thregr.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13240"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuri D'Elia Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 17 19:56:24 2021 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 1myIP1-0003H1-Cy for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Dec 2021 19:56:23 +0100 Original-Received: from localhost ([::1]:39460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myIP0-00080I-5P for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Dec 2021 13:56:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myINy-0007Dt-GA for emacs-devel@gnu.org; Fri, 17 Dec 2021 13:55:18 -0500 Original-Received: from [2001:470:142:3::e] (port=34274 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myINx-0002w5-Hl; Fri, 17 Dec 2021 13:55:17 -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=u/2u4O+eux6mBpnDeSqpjsNN0bxmpoBuC/s8TMiYw6Q=; b=Qo5ySuXkMxMl vC3Bqla+6L8FmcooW6DKAbLze5+QN/gd6RD2EbcNb0wopi/TxLQsIcCabWAJ3FTIB1opcZCOhaObE ihjqWiT9yge97Z4mhR7RnExdojdZ946OmQXSvB/tzeZFCARTEVkHDcLM22EmxyUF4SxMYBOdTM8u5 qy76RsfC5FZ7aGkVWJkfI2vZl5wXwuyatfMh2cr7LkUKKsbPVZB3ifUIuL84iqy5lo/Myx23mNTUz oS77W6qLrqAs1dytZfMSMGlUUsZdLC5AT3ZGf5xU+wc+pCkuFb7yJ+Mc1C19QRHGzZUIDIqTmUhYY XuGUHAvNENibK4jJlFHSZg==; Original-Received: from [87.69.77.57] (port=4278 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 1myINx-0005Bl-D7; Fri, 17 Dec 2021 13:55:17 -0500 In-Reply-To: <87pmpv708h.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Fri, 17 Dec 2021 15:51:58 +0100) 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" Xref: news.gmane.io gmane.emacs.devel:282227 Archived-At: > From: Yuri D'Elia > Date: Fri, 17 Dec 2021 15:51:58 +0100 > > Rebuilt today emacs on 36d873bf0d3f1185d0090e4b506a6a726476aec6, I > noticed when I start a fresh new instance of emacs the selected weight > for my default font is 'normal instead of 'medium. Emacs by default requests the normal (a.k.a. "regular") weight, so what you see now is the correct expected behavior. If previously Emacs selected the "medium" weight, that was a subtle bug. > This is why I currently do in my init.el: > > (set-face-attribute 'default nil :family "Iosevka" > :height 140 :weight 'medium) > > If I re-evaluate this _after_ the frame has been created though, the > correct weight is selected. This is the intended behavior, so I don't think there's anything we need to fix here.