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 22:27:27 +0200 Message-ID: <83ilvnc6z4.fsf@gnu.org> References: <87pmpv708h.fsf@wavexx.thregr.org> <83r1abcb93.fsf@gnu.org> <87y24jqahr.fsf@wavexx.thregr.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31217"; 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 21:28:26 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 1myJq6-0007v8-EY for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Dec 2021 21:28:26 +0100 Original-Received: from localhost ([::1]:54590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myJq4-0004Qc-Rp for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Dec 2021 15:28:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myJpS-0003jx-Fp for emacs-devel@gnu.org; Fri, 17 Dec 2021 15:27:46 -0500 Original-Received: from [2001:470:142:3::e] (port=36894 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 1myJpP-0001Tk-E7; Fri, 17 Dec 2021 15:27:44 -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=+E+dedKmB4LQqb5XuGtRhEwRK1ENo+beTqD5Rt2fWts=; b=nl/JfB5lAL+L pPJh1LzlZ2kL4fbXnKqh/NhGngYv3BnySHDgfmEzz42o9LWoNBGtspuqtBpvu99lhp8HFaoVppcxl y42usA6KgdzPNimG2FFRXMk9QoU7CoPd/mvttQx/XPjx3O0qxUlVnsW5yDhHPU9uyxXxOsdC0vDZ/ HiVJ7ONXSVW+gcttCosgfEf6w4gJBz2CyWSllzMgaXFmixA9EwzJ/UYwgHBYVyHYq6Yv7NOdIa0pG 7i7cbeZp7OJdYvCGl5gwG3jVC38GsbGWgKb1P7FhxJYgPrvi8aphhmxij9iboAqUybHfQ/+mXEZCA DvM/qVtyWv50qB2oM43J6g==; Original-Received: from [87.69.77.57] (port=1949 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 1myJpM-0005ek-RB; Fri, 17 Dec 2021 15:27:43 -0500 In-Reply-To: <87y24jqahr.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Fri, 17 Dec 2021 20:47:44 +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:282234 Archived-At: > From: Yuri D'Elia > Date: Fri, 17 Dec 2021 20:47:44 +0100 > > On Fri, Dec 17 2021, Eli Zaretskii wrote: > > 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. > > But as you saw, I'm explicitly setting the default face, and that > includes selecting 'medium as the font weight. Sorry, maybe I didn't understand your report, chronology-wise. What happened before and what happened after the change? And when did you add the set-face-attribute call to your init.el file? > >> (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. > > Why this call should select a different font when executed during init > vs. when called interactively? Now I'm totally confused: what does "interactive" has to do with this? If you put the same into your init.el, in a after-make-frame-functions, doesn't it produce the same effect as invoking it interactively after Emacs started?