From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Incorrect font weight selected Date: Sun, 19 Dec 2021 13:57:06 +0100 Message-ID: <87zgowkaeu.fsf@wavexx.thregr.org> References: <87pmpv708h.fsf@wavexx.thregr.org> <877dc1sdev.fsf@melete.silentflame.com> <83h7b59jr9.fsf@gnu.org> <87bl1cg77s.fsf@wavexx.thregr.org> <83k0g092pg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34641"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.5; emacs 29.0.50 Cc: emacs-devel@gnu.org, spwhitton@spwhitton.name To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 19 14:12:11 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 1myvz0-0008oJ-Hy for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 14:12:10 +0100 Original-Received: from localhost ([::1]:57208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myvyz-0002IA-Cu for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 08:12:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myvxa-0001CB-Ox for emacs-devel@gnu.org; Sun, 19 Dec 2021 08:10:42 -0500 Original-Received: from [2001:41c9:1:41f::63] (port=37438 helo=erc.thregr.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myvxY-0001eg-SI; Sun, 19 Dec 2021 08:10:42 -0500 Original-Received: from [5.170.81.94] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1myvxi-001skT-GQ (envelope-from ); Sun, 19 Dec 2021 14:10:50 +0100 In-reply-to: <83k0g092pg.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:41c9:1:41f::63 (failed) Received-SPF: pass client-ip=2001:41c9:1:41f::63; envelope-from=wavexx@thregr.org; helo=erc.thregr.org X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:282429 Archived-At: On Sun, Dec 19 2021, Eli Zaretskii wrote: > I asked about the weight, not the style. Good point, got confused :/ > 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.) $ fc-list Iosevka -f '%{weight} %{style}\n' | egrep -i 'Medium|Regular' | sort -n 0 Thin Extended Oblique,Regular 0 Thin Extended,Regular 0 Thin Oblique,Regular 0 Thin,Regular 40 Extralight Extended Oblique,Regular 40 Extralight Extended,Regular 40 Extralight Oblique,Regular 40 Extralight,Regular 50 Light Extended Oblique,Regular 50 Light Extended,Regular 50 Light Oblique,Regular 50 Light,Regular 80 Extended Oblique,Regular 80 Extended,Regular 80 Oblique,Regular 80 Regular 100 Medium Extended Italic,Italic 100 Medium Extended Oblique,Regular 100 Medium Extended,Regular 100 Medium Italic,Italic 100 Medium Oblique,Regular 100 Medium,Regular 180 Semibold Extended Oblique,Regular 180 Semibold Extended,Regular 180 Semibold Oblique,Regular 180 Semibold,Regular 205 Extrabold Extended Oblique,Regular 205 Extrabold Extended,Regular 205 Extrabold Oblique,Regular 205 Extrabold,Regular 210 Heavy Extended Oblique,Regular 210 Heavy Extended,Regular 210 Heavy Oblique,Regular 210 Heavy,Regular Keep in mind I'm also not a font guru. $ fc-list Inconsolata -f '%{weight} %{style}\n' 100 Medium So Inconsolata _only_ has Medium on my system (this is Inconsolata 001.010-6 from the debian unstable package). I assume the other weights are synthesized via freetype in this case. For comparison: $ fc-list 'Noto Sans' -f '%{weight} %{style}\n' | sort -n 80 Italic 80 Regular 200 Bold 200 Bold Italic So the weight mapping in Iosevka seems at least superficially correct. Note that Iosevka is a open font, just in case you want to test this: https://github.com/be5invis/Iosevka/ The version I've been using for these tests: https://github.com/be5invis/Iosevka/releases/download/v11.2.0/super-ttc-iosevka-11.2.0.zip it's a massive font due to all the style/weight combinations.