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: Sun, 19 Dec 2021 14:52:27 +0200 Message-ID: <83k0g092pg.fsf@gnu.org> References: <87pmpv708h.fsf@wavexx.thregr.org> <877dc1sdev.fsf@melete.silentflame.com> <83h7b59jr9.fsf@gnu.org> <87bl1cg77s.fsf@wavexx.thregr.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27614"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, spwhitton@spwhitton.name To: Yuri D'Elia Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 19 13:53:21 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 1myvgn-00070F-AI for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 13:53:21 +0100 Original-Received: from localhost ([::1]:34664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myvgm-0002Kf-1g for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 07:53:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myvg5-0001Un-GU for emacs-devel@gnu.org; Sun, 19 Dec 2021 07:52:37 -0500 Original-Received: from [2001:470:142:3::e] (port=32782 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 1myvg5-0006bF-1D; Sun, 19 Dec 2021 07:52:37 -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=GMSXYn1AGaef0t01QSP/NBpLqDjRqrgWVS9V6c9WAPU=; b=ChIJOcVhzT8b LYLl0iFu6DT/j63m/URN0povc5+pmnWrlN8hM7+Av5nJDV6XBLD8HLv9kPkfquPm45F4q/3HDbmIy bHzPFAVH+UqA3LaBZlryC4xL5LwQs5QYTA6XTJlBxAhdBCA+fUI+Vj6exKIRCt1OIit+30ApVyDx+ joXQnm0bJ2H/JR/m74ES0ZI9Vaf2mr3Tkkks2fZpRKXptsgr9dgVkIxxTztBjdfQuJc8sCetpxEIX MaqP8FUrQ8u+NiS+ljKbzk8Or79QbVUHoNNYoNLsTpwcIQTzhkDWr1QigCWP4a37aoY01UY2g3NQV 5SkHcLCDXLrqlI/S75Bw6A==; Original-Received: from [87.69.77.57] (port=4302 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 1myvg4-0004Dk-TZ; Sun, 19 Dec 2021 07:52:37 -0500 In-Reply-To: <87bl1cg77s.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Sun, 19 Dec 2021 12:29:10 +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:282424 Archived-At: > From: Yuri D'Elia > Cc: Sean Whitton , emacs-devel@gnu.org > Date: Sun, 19 Dec 2021 12:29:10 +0100 > > On Sun, Dec 19 2021, Eli Zaretskii wrote: > >> (set-frame-font (font-spec :name "Inconsolata-13" :weight 'medium)) > >> > >> then what I get is the regular weight, not the medium weight. It is as > >> though the :weight parameter is being completely ignored. > > > > Does that font have the 'medium' weight? > > $ fc-list 'Inconsolata' | grep Medium > /usr/share/fonts/truetype/inconsolata/Inconsolata.otf: Inconsolata:style=Medium > > However: > > $ fc-list 'Iosevka' -f '%{style}\n' | grep Medium > Medium Extended Oblique,Regular > Medium Extended,Regular > Medium Oblique,Regular > Medium Italic,Italic > Medium Extended Italic,Italic > Medium,Regular > ^^^^^^^^^^^^^^ I asked about the weight, not the style. Emacs 29 distinguishes between 'medium' and 'regular'/'normal' weight, and I don't think I see 'medium' in the above output (or maybe I misunderstand it). Can you show the numerical value of the weight for each one of the above font varieties? (Sorry, I don't know how to ask fc to report that.)