From unknown Sat Jun 14 08:54:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#32210 <32210@debbugs.gnu.org> To: bug#32210 <32210@debbugs.gnu.org> Subject: Status: Support medium weighted fonts Reply-To: bug#32210 <32210@debbugs.gnu.org> Date: Sat, 14 Jun 2025 15:54:20 +0000 retitle 32210 Support medium weighted fonts reassign 32210 emacs submitter 32210 Carlos Pita severity 32210 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 19 10:06:52 2018 Received: (at submit) by debbugs.gnu.org; 19 Jul 2018 14:06:52 +0000 Received: from localhost ([127.0.0.1]:48366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fg9a0-0005jI-2K for submit@debbugs.gnu.org; Thu, 19 Jul 2018 10:06:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fg9Zy-0005j6-EA for submit@debbugs.gnu.org; Thu, 19 Jul 2018 10:06:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fg9Zp-0003zJ-B3 for submit@debbugs.gnu.org; Thu, 19 Jul 2018 10:06:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fg9Zp-0003zB-7g for submit@debbugs.gnu.org; Thu, 19 Jul 2018 10:06:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fg9Zn-0001hj-SB for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fg9Zj-0003wy-Or for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:06:39 -0400 Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:44332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fg9Zj-0003wW-II for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:06:35 -0400 Received: by mail-yw0-x235.google.com with SMTP id k18-v6so3093191ywm.11 for ; Thu, 19 Jul 2018 07:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bEUSTXc3zCzpLsq1Ku9YiCHWr5o5Wu104SNXWcpUEeM=; b=TTzUe6ZkkffcCu1fKwiHVak5cxkV83ddZpjNiKeZJ2QiUx8RqNBysKv9uZSPmta+gb HdAPFU+hHpXcfnKgdo1zHtn7NxSik7bB6yi2Kkd/SGVOxxhn2bOjUU1NCc/MIIECOAyh kYjT1u7Cn953Nbu8JYVdznMMW99j1ChDIK2igoM7l0WmRx9mEhuGpggnIZjnWjRVHy1S rZ/UXP/WcWuQb3OFQb7arjdVFDsslL3ehAD7faHYNRygZvFmCIBtyxETo3MDCHdS3+5/ mmjJuBqNWla0/vYyV9k+I2gjWdeLEpJaT3brUOwvssTOz5P8UW62S4dlqk9i5MXNuf6H 0+fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bEUSTXc3zCzpLsq1Ku9YiCHWr5o5Wu104SNXWcpUEeM=; b=A6X/TJJwa3lhovFpwmJ3lLxjWIqnilPWwRMC1Z97Jealc2nhP5Y4WTiDEE3KCKTjN4 0fSHJ7jSkAz5sp1aOpVmS/O0hjfn3iZoDhQXP28IFfIaOx0SY5+Dey0gU9GqcUGkm7lH vAJP2z+V8OqV7LnDgEjR9svfKUc6+gCJDBWdO/TbB4you0gEvpmseoWN5Dzyiki2c44m 6a5GDli9rpSZO7mAXsd2nwVqPhyLBTU2fDfIFnN8MC0BA0voTHDS3EzBl6AU/h0PCoKl uHe35OCgfJBBJTHFsceRL9GcnzAFDANjRY3vTIWmt0vNqFeOXDr0ws+GYBsS11x+iW6O T+cQ== X-Gm-Message-State: AOUpUlFVXXKYyorOGmKvdD7U9p1sHORcYImrPteRI81zS39+anvQUpBd F/9WLLAC3seo8SRfnli6nRDSvjictAYEydIkHuEsuDlZ X-Google-Smtp-Source: AAOMgpehRwg+6FiAKoc3v7KxUar16Tbur9V38RDcCgyPgAKQE1AKmAhrAl8BzSljJ4sN9Els+WgBD7uiIC8RjubG01I= X-Received: by 2002:a81:9b8b:: with SMTP id s133-v6mr5076282ywg.90.1532009194139; Thu, 19 Jul 2018 07:06:34 -0700 (PDT) MIME-Version: 1.0 From: Carlos Pita Date: Thu, 19 Jul 2018 11:06:22 -0300 Message-ID: Subject: Support medium weighted fonts To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000cf336905715aaf3a" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --000000000000cf336905715aaf3a Content-Type: text/plain; charset="UTF-8" (I'm unable to access my emacs now so sorry for reporting this from my phone. Ask for any additional details and I will provide them ASAP.) Many programming fonts are designed for hidpi devices and look pretty bad (too thin and "diffused") in their default weight in antialiased settings with standard resolution screen. Nevertheless a number of fontsets provide medium and/or demibold variants in between the regular one and the bold one. For example, the medium SauceCodePro (based on SourceCodePro) looks much solid than the regular variant. Now, the problem is that, no matter how emacs font is configured (xresources with xft or gtk descriptor, customize-face, the standard gtk dialog launched from the menu) medium is taken as an alias for normal/regular and you have to jump from regular to demibold. One good example is the aforementioned font. In xfce4-terminal I get all regular, medium and demibold variants. Medium is a nice default weight, demibold being too close to bold for regular usage. In emacs I get only the too thin regular weight (using regular or medium weights) or the too fat demibold (using demi/semibold). I think this is a relevant issue since emacs is mostly a programmer's tool and being unable to use the best font in a set designed for programming is not just a minor annoyance. One general solution would be to allow numerical values for weight, but nevertheless the medium symbol should be assigned the right meaning. --000000000000cf336905715aaf3a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(I'm unable to access my emacs now so sorry for repor= ting this from my phone. Ask for any additional details and I will provide = them ASAP.)

Many programming f= onts are designed for hidpi devices and look pretty bad (too thin and "= ;diffused") in their default weight in antialiased settings with stand= ard resolution screen.

N= evertheless a number of fontsets provide medium and/or demibold variants in= between the regular one and the bold one. For example, the medium SauceCod= ePro (based on SourceCodePro) looks much solid than the regular variant.

Now, the problem is that, = no matter how emacs font is configured (xresources with xft or gtk descript= or, customize-face, the standard gtk dialog launched from the menu) medium = is taken as an alias for normal/regular and you have to jump from regular t= o demibold.

One good exa= mple is the aforementioned font. In xfce4-terminal I get all regular, mediu= m and demibold variants. Medium is a nice default weight, demibold being to= o close to bold for regular usage. In emacs I get only the too thin regular= weight (using regular or medium weights) or the too fat demibold (using de= mi/semibold).

I think th= is is a relevant issue since emacs is mostly a programmer's tool and be= ing unable to use the best font in a set designed for programming is not ju= st a minor annoyance.

On= e general solution would be to allow numerical values for weight, but never= theless the medium symbol should be assigned the right meaning.


--000000000000cf336905715aaf3a-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 17 03:27:52 2019 Received: (at control) by debbugs.gnu.org; 17 Nov 2019 08:27:52 +0000 Received: from localhost ([127.0.0.1]:40221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWFuQ-0005wX-CO for submit@debbugs.gnu.org; Sun, 17 Nov 2019 03:27:50 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWFuO-0005wI-JA for control@debbugs.gnu.org; Sun, 17 Nov 2019 03:27:48 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWFuH-0004ug-0j for control@debbugs.gnu.org; Sun, 17 Nov 2019 09:27:43 +0100 Date: Sun, 17 Nov 2019 09:27:40 +0100 Message-Id: <87zhguaow3.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #32210 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: forcemerge 32210 28351 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 32210 28351 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 17 03:37:58 2019 Received: (at 32210) by debbugs.gnu.org; 17 Nov 2019 08:37:58 +0000 Received: from localhost ([127.0.0.1]:40234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWG4D-00089r-VI for submit@debbugs.gnu.org; Sun, 17 Nov 2019 03:37:58 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWG4B-00089f-Pm for 32210@debbugs.gnu.org; Sun, 17 Nov 2019 03:37:56 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWG42-0004yb-Jp; Sun, 17 Nov 2019 09:37:49 +0100 From: Lars Ingebrigtsen To: Carlos Pita Subject: Re: bug#32210: Support medium weighted fonts References: Date: Sun, 17 Nov 2019 09:37:45 +0100 In-Reply-To: (Carlos Pita's message of "Thu, 19 Jul 2018 11:06:22 -0300") Message-ID: <87v9riaofa.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Carlos Pita writes: > Many programming fonts are designed for hidpi devices and look pretty > bad (too thin and "diffused") in their default weight in antialiased > settings with standard resolution screen. > > Neverthel [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Carlos Pita writes: > Many programming fonts are designed for hidpi devices and look pretty > bad (too thin and "diffused") in their default weight in antialiased > settings with standard resolution screen. > > Nevertheless a number of fontsets provide medium and/or demibold variants in > between the regular one and the bold one. For example, the medium > SauceCodePro (based on SourceCodePro) looks much solid than the regular > variant. > > Now, the problem is that, no matter how emacs font is configured > (xresources with xft or gtk descriptor, customize-face, the standard > gtk dialog launched from the menu) medium is taken as an alias for > normal/regular and you have to jump from regular to demibold. I think this is the culprit: static const struct table_entry weight_table[] = { { 0, { "thin" }}, { 20, { "ultra-light", "ultralight" }}, { 40, { "extra-light", "extralight" }}, { 50, { "light" }}, { 75, { "semi-light", "semilight", "demilight", "book" }}, { 100, { "normal", "medium", "regular", "unspecified" }}, { 180, { "semi-bold", "semibold", "demibold", "demi" }}, { 200, { "bold" }}, { 205, { "extra-bold", "extrabold" }}, { 210, { "ultra-bold", "ultrabold", "black" }} }; We define "medium" the same as "regular", but there are many fonts that have both "regular" and "medium" variants, if I understand things correctly. Googling around a bit, it seems that most pages that describe these things put "medium" at the halfway point between "regular" and "demibold", which would mean a value of 140 for Emacs. For instance: https://www.quora.com/What-is-the-difference-between-Medium-Demi-and-Semibold-fonts https://cssreference.io/property/font-weight/ Those are from a web/TrueType perspective, though. Anybody have any thoughts on this issue? The medium/regular non-distinction in Emacs seems to crop up here and there, so it's a problem in practice. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 17 11:00:00 2019 Received: (at 32210) by debbugs.gnu.org; 17 Nov 2019 16:00:00 +0000 Received: from localhost ([127.0.0.1]:42400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWMxz-0003Ke-JP for submit@debbugs.gnu.org; Sun, 17 Nov 2019 10:59:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWMxx-0003KQ-J0 for 32210@debbugs.gnu.org; Sun, 17 Nov 2019 10:59:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iWMxs-0006xv-CG; Sun, 17 Nov 2019 10:59:52 -0500 Received: from [176.228.60.248] (port=3449 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iWMxr-0003CB-Jf; Sun, 17 Nov 2019 10:59:52 -0500 Date: Sun, 17 Nov 2019 17:59:53 +0200 Message-Id: <83pnhq5w92.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87v9riaofa.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 17 Nov 2019 09:37:45 +0100) Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Sun, 17 Nov 2019 09:37:45 +0100 > Cc: 32210@debbugs.gnu.org > > > Now, the problem is that, no matter how emacs font is configured > > (xresources with xft or gtk descriptor, customize-face, the standard > > gtk dialog launched from the menu) medium is taken as an alias for > > normal/regular and you have to jump from regular to demibold. > > I think this is the culprit: > > static const struct table_entry weight_table[] = > { > { 0, { "thin" }}, > { 20, { "ultra-light", "ultralight" }}, > { 40, { "extra-light", "extralight" }}, > { 50, { "light" }}, > { 75, { "semi-light", "semilight", "demilight", "book" }}, > { 100, { "normal", "medium", "regular", "unspecified" }}, > { 180, { "semi-bold", "semibold", "demibold", "demi" }}, > { 200, { "bold" }}, > { 205, { "extra-bold", "extrabold" }}, > { 210, { "ultra-bold", "ultrabold", "black" }} > }; I don't think this is the only place. For example, XG_WEIGHT_TO_SYMBOL looks also relevant. And there are other places in the sources that only support subsets of all the weights. If we want to make them more fine-grained, we should make them all consistent, as much as possible, modulo the limitations of the toolkit. For example, Someoneā„¢ should verify that the problem described above is not some inherent GTK limitation. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 17 12:07:06 2019 Received: (at 32210) by debbugs.gnu.org; 17 Nov 2019 17:07:06 +0000 Received: from localhost ([127.0.0.1]:42492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWO0v-0000VL-MI for submit@debbugs.gnu.org; Sun, 17 Nov 2019 12:07:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWO0t-0000Uq-Ep for 32210@debbugs.gnu.org; Sun, 17 Nov 2019 12:07:04 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWO0h-00009U-Un; Sun, 17 Nov 2019 18:06:54 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> Date: Sun, 17 Nov 2019 18:06:51 +0100 In-Reply-To: <83pnhq5w92.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Nov 2019 17:59:53 +0200") Message-ID: <87lfse5t5g.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > I don't think this is the only place. For example, > XG_WEIGHT_TO_SYMBOL looks also relevant. Interesting... Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > I don't think this is the only place. For example, > XG_WEIGHT_TO_SYMBOL looks also relevant. Interesting... #define XG_WEIGHT_TO_SYMBOL(w) \ (w <=3D PANGO_WEIGHT_THIN ? Qextra_light \ : w <=3D PANGO_WEIGHT_ULTRALIGHT ? Qlight \ : w <=3D PANGO_WEIGHT_LIGHT ? Qsemi_light \ : w < PANGO_WEIGHT_MEDIUM ? Qnormal \ : w <=3D PANGO_WEIGHT_SEMIBOLD ? Qsemi_bold \ : w <=3D PANGO_WEIGHT_BOLD ? Qbold \ : w <=3D PANGO_WEIGHT_HEAVY ? Qextra_bold \ : Qultra_bold) If we look at https://abi-laboratory.pro/?view=3Dheaders_diff&l=3Dpango&v1=3D1.36.5&v2=3D= 1.36.6 we find * @PANGO_WEIGHT_NORMAL: the default weight (=3D 400) * @PANGO_WEIGHT_MEDIUM: the normal weight (=3D 500; Since: 1.24) so Pando has also grown a MEDIUM in addition to NORMAL... and we don't have PANGO_WEIGHT_NORMAL. > And there are other places in the sources that only support subsets of > all the weights. If we want to make them more fine-grained, we should > make them all consistent, as much as possible, modulo the limitations > of the toolkit. Yup.=20=20 > For example, Someone=E2=84=A2 should verify that the problem described ab= ove > is not some inherent GTK limitation. If we look at https://emacs.stackexchange.com/questions/32377/selecting-correct-font-weig= ht-variant-linux people seem to be instructing Emacs to use the sizes adjacent to Emacs normal/medium to actually get the weights they want, and then it works. Also see bug#28351 (which I've merged with this one). But is this something we want to tweak before Emacs 27, or should it wait for Emacs 28?=20=20 --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 17 12:54:21 2019 Received: (at 32210) by debbugs.gnu.org; 17 Nov 2019 17:54:21 +0000 Received: from localhost ([127.0.0.1]:42531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWOkc-0003aP-6f for submit@debbugs.gnu.org; Sun, 17 Nov 2019 12:54:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWOkZ-0003aA-Ip for 32210@debbugs.gnu.org; Sun, 17 Nov 2019 12:54:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iWOkU-00070Q-4C; Sun, 17 Nov 2019 12:54:10 -0500 Received: from [176.228.60.248] (port=2526 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iWOkS-0007Y6-Lr; Sun, 17 Nov 2019 12:54:09 -0500 Date: Sun, 17 Nov 2019 19:54:08 +0200 Message-Id: <835zji5qyn.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87lfse5t5g.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 17 Nov 2019 18:06:51 +0100) Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org > Date: Sun, 17 Nov 2019 18:06:51 +0100 > > #define XG_WEIGHT_TO_SYMBOL(w) \ > (w <= PANGO_WEIGHT_THIN ? Qextra_light \ > : w <= PANGO_WEIGHT_ULTRALIGHT ? Qlight \ > : w <= PANGO_WEIGHT_LIGHT ? Qsemi_light \ > : w < PANGO_WEIGHT_MEDIUM ? Qnormal \ > : w <= PANGO_WEIGHT_SEMIBOLD ? Qsemi_bold \ > : w <= PANGO_WEIGHT_BOLD ? Qbold \ > : w <= PANGO_WEIGHT_HEAVY ? Qextra_bold \ > : Qultra_bold) > > If we look at > > https://abi-laboratory.pro/?view=headers_diff&l=pango&v1=1.36.5&v2=1.36.6 > > we find > > * @PANGO_WEIGHT_NORMAL: the default weight (= 400) > * @PANGO_WEIGHT_MEDIUM: the normal weight (= 500; Since: 1.24) For more amusement, see https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createfonta Who copycats whom? > so Pando has also grown a MEDIUM in addition to NORMAL... and we don't > have PANGO_WEIGHT_NORMAL. A related question is: can the GTK font selection dialog return PANGO_WEIGHT_MEDIUM (when you choose a font with that weight)? > > And there are other places in the sources that only support subsets of > > all the weights. If we want to make them more fine-grained, we should > > make them all consistent, as much as possible, modulo the limitations > > of the toolkit. > > Yup. > > > For example, Someoneā„¢ should verify that the problem described above > > is not some inherent GTK limitation. > > If we look at > > https://emacs.stackexchange.com/questions/32377/selecting-correct-font-weight-variant-linux > > people seem to be instructing Emacs to use the sizes adjacent to Emacs > normal/medium to actually get the weights they want, and then it works. > Also see bug#28351 (which I've merged with this one). I think there's still more to this. From reading various parts of font.c I get the impression that Fontconfig supports only a subset of the above values. Or maybe it did in the past, when font.c was coded, and nowadays supports more? Also see the node "Fonts" n the user manual, where it describes no less than 4 different methods of specifying a font, each one with a different repertoire of "weight" values. So not only the toolkit matters here, but also the font configuration back-end (Fontconfig and FreeType on Posix platforms) etc., and we use different font specifications in different commands, which sometimes exposes the differences. We need to bring them all to the common denominator, and it has to be not the lowest one. > But is this something we want to tweak before Emacs 27, or should it > wait for Emacs 28? It depends what kind of tweaking will be needed. If we just need to change a bunch of constants and augment several switch statements that convert between representations, it might be safe enough for Emacs 27. E.g., see the change I just installed in w32font.c for bug#24226. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 05:29:06 2019 Received: (at 32210) by debbugs.gnu.org; 18 Nov 2019 10:29:07 +0000 Received: from localhost ([127.0.0.1]:43220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWeHK-0001Qt-D7 for submit@debbugs.gnu.org; Mon, 18 Nov 2019 05:29:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:33894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWeHG-0001QL-QU for 32210@debbugs.gnu.org; Mon, 18 Nov 2019 05:29:04 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWeH4-00088F-4r; Mon, 18 Nov 2019 11:28:53 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> Date: Mon, 18 Nov 2019 11:28:49 +0100 In-Reply-To: <835zji5qyn.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Nov 2019 19:54:08 +0200") Message-ID: <87k17xqxzy.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> so Pando has also grown a MEDIUM in addition to NORMAL... and we don't >> have PANGO_WEIGHT_NORMAL. > > A related question is: can the GTK font selection dialog return > PANGO_WEIGHT_MEDIUM (when y [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> so Pando has also grown a MEDIUM in addition to NORMAL... and we don't >> have PANGO_WEIGHT_NORMAL. > > A related question is: can the GTK font selection dialog return > PANGO_WEIGHT_MEDIUM (when you choose a font with that weight)? I installed the following debugging diff --git a/src/gtkutil.c b/src/gtkutil.c index c4d2ef9d80..b1b3e4c397 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -2300,6 +2300,10 @@ xg_get_font (struct frame *f, const char *default_name) PangoWeight weight = pango_font_description_get_weight (desc); PangoStyle style = pango_font_description_get_style (desc); + CALLN (Fmessage, build_string ("Weight: %s, symbol %s"), + make_int (weight), + XG_WEIGHT_TO_SYMBOL (weight)); + font = CALLN (Ffont_spec, QCfamily, build_string (family), QCsize, make_float (pango_units_to_double (size)), and tried using the gtk selector (via M-x menu-set-font). I only have one font installed that has both normal and medium variations "Nimbus no9", so I tried that. And I got: Weight: 400, symbol normal Weight: 700, symbol bold And, yes, the thing that's called Nimbus No9 Medium does look like a bold in both the gtk selector and in Emacs. So I don't think I have a proper font to experiment with... does anybody know of a font in Debian Stable that has both varieties? SauceCodePro was the example in the bug report, but that does not seem to be available here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 05:41:57 2019 Received: (at 32210) by debbugs.gnu.org; 18 Nov 2019 10:41:57 +0000 Received: from localhost ([127.0.0.1]:43231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWeTl-0001lN-5D for submit@debbugs.gnu.org; Mon, 18 Nov 2019 05:41:57 -0500 Received: from quimby.gnus.org ([95.216.78.240]:34306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWeTi-0001lA-Jr for 32210@debbugs.gnu.org; Mon, 18 Nov 2019 05:41:55 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWeTX-0008Gg-Ly; Mon, 18 Nov 2019 11:41:46 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> Date: Mon, 18 Nov 2019 11:41:42 +0100 In-Reply-To: <87k17xqxzy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 18 Nov 2019 11:28:49 +0100") Message-ID: <87eey5qxeh.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > So I don't think I have a proper font to experiment with... does > anybody know of a font in Debian Stable that has both varieties? > SauceCodePro was the example in the bug report, but that does no [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnus.org] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > So I don't think I have a proper font to experiment with... does > anybody know of a font in Debian Stable that has both varieties? > SauceCodePro was the example in the bug report, but that does not seem > to be available here. Found one -- "apt install ubuntu-font". I chose "Ubuntu Regular" and "Ubuntu Medium": Weight: 400, symbol normal Weight: 500, symbol semi-bold And: Added wrinkle: In Emacs, the "Regular" font is heavier than the "Medium" font (but they're not in the Gtk selector). This is all very confusing. If I say emacs -Q -fn "Ubuntu:weight=regular" emacs -Q -fn "Ubuntu:weight=medium" I get the more expected result (i.e., identical display in Emacs since we map both of these to the same thing in other parts of Emacs). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 05:55:18 2019 Received: (at 32210) by debbugs.gnu.org; 18 Nov 2019 10:55:19 +0000 Received: from localhost ([127.0.0.1]:43240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWegg-000264-M6 for submit@debbugs.gnu.org; Mon, 18 Nov 2019 05:55:18 -0500 Received: from mail-wm1-f42.google.com ([209.85.128.42]:50583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWegf-00025n-0Q for 32210@debbugs.gnu.org; Mon, 18 Nov 2019 05:55:18 -0500 Received: by mail-wm1-f42.google.com with SMTP id l17so16819908wmh.0 for <32210@debbugs.gnu.org>; Mon, 18 Nov 2019 02:55:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=lg4/WiaiBFVFF6CTZIN+hAusy7YC0zWvSPgF4H1O5LY=; b=X3L825Z4yD+Ues5AEAlCspNIFMuo+GpSKFBlPxgyOJxX/bLxxJupIthxtDk9D0veJk q0vEPKr69yoQ3CxCNnlrFReTrI0yBXMGGCCVSduK11qoRrWL0GYY3I2TEvYvlcwNxexr lQvkV7M/O2BR6RDlqMBrUjmDGqhyh+YNVXlA7/MeNbUwdH6lBsymQGENtg+2JRqfgUYB v2iQWR5eHDkr2Jc0spKLb49lNbiWgElyHKRaI740s6g2vkut41CMb+ObL0yL144vbTuR ibsSv7giYV+1EchONa54ix8VkeHJEnj7n9EwVnSADMYz4FXPSF9vfaW/nVAT6jWbXtCB ZRBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=lg4/WiaiBFVFF6CTZIN+hAusy7YC0zWvSPgF4H1O5LY=; b=KTWyrv1H49mZ/7fMD2goIZQ6yu49mXiYdOpq8r9Z+OVg4un01aox3Za0PXF7ND6P4o 0Nr674R6yvpCUU2enyoHgE+zOdF4ZV+spZuqENNsn/UkqgLsBmwUZ1OhkmkWu7BBPyVR oKWpicrY42NwH3wqUXsvEmK8Uxv7GCMlsedEJZ/PwWZbomrvCbG+AKB41bMxewaZXoGL BFGbb4+GWXp44YMQVpyFIxXbb10adL94Z6i9K0kAjRx7Omxm/NKvfDXetqaGD6F6T6ep VCR57zfUSOgA6WXX+G7Us9GDQpBVHqYgKZXRsE7bUBWxwvh+T60SoYBZngAdd6VAnJ/2 DR/w== X-Gm-Message-State: APjAAAVE8wvtpYcN/X052a3uCEXZHyth91zUBFrXeKugkQNQY+1Ws74F QPdc/KXKoQPklKu6IwNCU6I352EL2Bs= X-Google-Smtp-Source: APXvYqw2WrJEi5cEdxgdQegIOXl873sEo/QwjxnBRgWqQh2SxUMdCCnh36F3XhMHdwgdwFlOZj5meQ== X-Received: by 2002:a1c:23c1:: with SMTP id j184mr27652857wmj.83.1574074510601; Mon, 18 Nov 2019 02:55:10 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id f67sm19857752wme.16.2019.11.18.02.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 02:55:10 -0800 (PST) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> X-Debbugs-No-Ack: yes Gmane-Reply-To-List: yes Date: Mon, 18 Nov 2019 11:55:09 +0100 In-Reply-To: <87k17xqxzy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 18 Nov 2019 11:28:49 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: Eli Zaretskii , carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Mon, 18 Nov 2019 11:28:49 +0100, Lars Ingebrigtsen said: Lars> and tried using the gtk selector (via M-x menu-set-font). I only= have Lars> one font installed that has both normal and medium variations "Ni= mbus Lars> no9", so I tried that. And I got: Lars> Weight: 400, symbol normal Lars> Weight: 700, symbol bold Lars> And, yes, the thing that's called Nimbus No9 Medium does look lik= e a Lars> bold in both the gtk selector and in Emacs. So I don't think I h= ave a Lars> proper font to experiment with... does anybody know of a font in= Debian Lars> Stable that has both varieties? SauceCodePro was the example in = the Lars> bug report, but that does not seem to be available here. I tried here with 'Noto Sans CJK HK', which seems to have every variant under the sun, and got: Weight: 400, symbol normal Weight: 500, symbol semi-bold I don=CA=BCt know if Debian Stable has that font. Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 10:48:32 2019 Received: (at 32210) by debbugs.gnu.org; 18 Nov 2019 15:48:32 +0000 Received: from localhost ([127.0.0.1]:46095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWjGR-0001jU-V0 for submit@debbugs.gnu.org; Mon, 18 Nov 2019 10:48:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWjGQ-0001jH-6q for 32210@debbugs.gnu.org; Mon, 18 Nov 2019 10:48:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iWjGK-0007PC-MD; Mon, 18 Nov 2019 10:48:24 -0500 Received: from [176.228.60.248] (port=2777 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iWjGK-0004PG-3E; Mon, 18 Nov 2019 10:48:24 -0500 Date: Mon, 18 Nov 2019 17:48:28 +0200 Message-Id: <835zjh4243.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87eey5qxeh.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 18 Nov 2019 11:41:42 +0100) Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org > Date: Mon, 18 Nov 2019 11:41:42 +0100 > > I chose "Ubuntu Regular" and "Ubuntu Medium": > > Weight: 400, symbol normal > Weight: 500, symbol semi-bold > > And: Added wrinkle: In Emacs, the "Regular" font is heavier than the > "Medium" font (but they're not in the Gtk selector). Sorry, I don't understand: is this "wrinkle" due to the font, or is this something Emacs does? If the latter, can you point out where we treat "regular" heavier than "medium"? From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 12:17:39 2019 Received: (at 32210) by debbugs.gnu.org; 18 Nov 2019 17:17:39 +0000 Received: from localhost ([127.0.0.1]:46163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWkeh-0005ua-Ff for submit@debbugs.gnu.org; Mon, 18 Nov 2019 12:17:39 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWkef-0005uN-Ud for 32210@debbugs.gnu.org; Mon, 18 Nov 2019 12:17:38 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWkeV-0003UE-Vj; Mon, 18 Nov 2019 18:17:30 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> Date: Mon, 18 Nov 2019 18:17:27 +0100 In-Reply-To: <835zjh4243.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 18 Nov 2019 17:48:28 +0200") Message-ID: <871ru5qf2w.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> I chose "Ubuntu Regular" and "Ubuntu Medium": >> >> Weight: 400, symbol normal >> Weight: 500, symbol semi-bold >> >> And: Added wrinkle: In Emacs, the "Regular" font is heavier than the >> "Medium [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnu.org] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> I chose "Ubuntu Regular" and "Ubuntu Medium": >> >> Weight: 400, symbol normal >> Weight: 500, symbol semi-bold >> >> And: Added wrinkle: In Emacs, the "Regular" font is heavier than the >> "Medium" font (but they're not in the Gtk selector). > > Sorry, I don't understand: is this "wrinkle" due to the font, or is > this something Emacs does? If the latter, can you point out where we > treat "regular" heavier than "medium"? When choosing the font via the Gtk selector, the font named "Ubuntu Regular" in the selector is less heavy than the font named "Ubuntu Medium" in the selector, but in Emacs it's the other way around. Here's after selecting "Ubuntu Regular": --=-=-= Content-Type: image/jpeg Content-Disposition: inline; filename=screenNv8rm6.jpg Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEP ERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/wAALCAAoAUsBAREA/8QAHQABAAIDAQEB AQAAAAAAAAAAAAYHBAUIAQMCCf/EAEAQAAECBgEDAgMDBwoHAAAAAAECAwAEBQYHERIIITETQRQi URUyYQkjOUJ0drQ0OHF1gYKDsbO1NjdSYnKRsv/aAAgBAQAAPwDry3axTbgoMjXaPMiap0/LomJZ 4JUnm2sApOlAEdj4IBHvGfEWsDIdoX2uqItOr/aRpT4l5wiWdbDbh32BWlIV90907H/sRKYrfKuU l2Ne1nW2m1alVxck58MZqXVpMr8yE71xPM/NsjadAE7iyIRWNtZXVWuoe48UJoYYRQ6amcVUDNci 8VCXPEN8RxAD/nkfu/jFnRG7Pvq1buqdaptu1ZE/M0R8S9RSlpaQy4SocdqSAo7Qr7pPiJJCNDft 5WzYtvOV+7KszS6c2tLZdWlSypavCUpQCpR8nQBOgT4BjJoFx0Wu2vLXPTJ9t2jzUv8AEtTTiVNJ LWt8yFgFI0N9wNRDrbznie4rnRbdGvanTNUcX6bTXFxCXV+yUOKSELJ9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tqWQjeuRSpQSNkEqOtAaGye0q6kLSrtk XbjXJ9v0qar0haEu3T6iwwgqdDCOwcAG+xSpwE+EnjvsYjGQrwX1NXvZls2Nb1aYodKqAnavUp6X DaWRsbAKVKAISFAAnalEADQ3G/6gKhMWJ1h2NkWo0ipTdA+yzIKelWeenl/Et8e5A2PWQrRI2Cdb 1HU0z/Jnf/A/5RzJ+T3/AJvNw/17NfwsvEZ6XbSmb56K7ytWSWlE3P1KZTLcjpJdS3LrQCfYFSQC fbcY9o59es7CoxVVrIuRF+SMi7S5WUEntt0nkltZ78+wI2Ak8tdjo9vvc9iVXH/5Per0iuNGXqc1 My89My58sFycY4oP4hKU7HsSR7R0jhb/AJF2V+7Mh/DIjn3ot/mjX5+2VL+BZj3CH6Pu6f2Crf5L jQ1yk3PWPyd1ry9ssTcyWppT1QYlklS3JVMxMcvlHdQCy2oj6J37RB8hVnENxy1jUvFdmztNrcpV JdU+DIEO+mNApWsElZ5aO/7YuLqAqExYnWHY2RajSKlN0D7LMgp6VZ56eX8S3x7kDY9ZCtEjYJ1v UdVQiP2VdCblTVULotTo03Sp4SU3Kz5YLiVlhp8EFlxxBSUPoPZW97BA1EghCEVXmGgZsqFxSs/j C9KFR5BEoGpiRqUtzDjvNRLgV6ayPlKRoa8e8aXCuHLmoeRajkzJV0y9xXZNy3wrXwrXCXlm+wPH 5U7OkgABKQAVeSrYu6EIQhCEIRV+M8VvWvlu+Mg1Oqs1GcuN1KZVLbJbMrLg79M7J5Hs2Nj/AKN6 G9C0IRzo9hnK193bSnMw3tRana9JnfjWaXTWCn4lYJ4h382ga0dH73bYGuRMdFwhCEIQhCEIQhCE IQhEMx3/AMXZH/eRn/aadEzhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEI//Z --=-=-= Content-Type: text/plain And here's after selecting "Ubuntu Medium": --=-=-= Content-Type: image/jpeg Content-Disposition: inline; filename=screenEOYozM.jpg Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAQAAAQABAAD/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P1X qWkt/PyHDjxz4VnOO2lSs7RXczuLct42Rug7bDlxmOZ8ddCYmgllvpo4qcUOOAVHx/V3zgaZ9qds qXYtNqqVz5deq1cf69Yqc/BcmLwQAQOwQAVAJ745HSQ3sRcFJpsy2LQ3YrNAsyWtwqo4p7L7jCHC SttmSo820nJx2JGfqSSWy5tn7ZqmyC9p4Sn6ZSEx2247reFuNrQ4HA4c/MSsZV4zyPjPZxtOBVaZ bcGBW60quVFhoIkVBUZLBkK/9i2kkJ7Y7A6ye5tmr7u2ku23d+8syqWzIcQZMJqgRo77yELC0oL6 SSO6R3Cfp31fX9tKavdMG8LOumbZtzQ4Ygetjx0SWpEYHIbdZc7LwfBz9vOBhgsO3LtpNMqDF3X0 5dcmVgNPGltQ0R04IIShsnOc5ySfGl+0tpfcPs6vbR+//U9WnTYXvP0fDHqFuq5dLmfl6uMcu+PI z2Lx2l/UPs7x9pPf/pujToML3l6Pnn0ymlc+lzHzdLxy7cvJx3tbl2+987p2Re/vfofpZqa36T03 L1XqGelnnyHDj58Kz47edPOsQhbLXxQ59wCzt4ZVBpVdqsiqSYgoDD7iHXiOfB5SuSewSAcdsZ85 062dtValt7ZyrBQw9UKZUEu+8nZbnJ6a46MOOLUMfEe3cYxgY8aRDsJcL1vt2TN3drsmw2+LYo/u 9hMhTCSCllUsfEUDAGOPjt4xpz3S2thXfZ1DoVIqbltSLdmxptFlRmEuiI4wkpbHTUQFJAPjI8D9 jBvnaaXWrgpl40C851tXpCgpgv1aPEbdbmteSHo6vhUOXcDPbt5wnBtltdW7c3Bql83TfLl01qoQ EQFLFLbhNoaSsKGEoUcnt/zrUNGs/sanIoe6lzUSHUK1IgIolKlNtVCryZ3TdcfqCVqSZDiynklp sEAgfCNaBo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGv//Z --=-=-= Content-Type: text/plain (The texts are from the debugging patch.) So we have a whole a whole bunch of bugs here, apparently. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 12:26:53 2019 Received: (at 32210) by debbugs.gnu.org; 18 Nov 2019 17:26:53 +0000 Received: from localhost ([127.0.0.1]:46177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWknd-00069e-7O for submit@debbugs.gnu.org; Mon, 18 Nov 2019 12:26:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWknc-00069R-58 for 32210@debbugs.gnu.org; Mon, 18 Nov 2019 12:26:52 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iWknW-0005sL-Vh; Mon, 18 Nov 2019 12:26:47 -0500 Received: from [176.228.60.248] (port=1651 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iWknV-0008Eg-Mz; Mon, 18 Nov 2019 12:26:46 -0500 Date: Mon, 18 Nov 2019 19:26:49 +0200 Message-Id: <83muct2izq.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <871ru5qf2w.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 18 Nov 2019 18:17:27 +0100) Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org > Date: Mon, 18 Nov 2019 18:17:27 +0100 > > So we have a whole a whole bunch of bugs here, apparently. I'm not surprised. Just look at the different conversions of weight symbols into numbers, and you will see the mess. For example, font_parse_fcname obviously supports only a subset of weight values, so it's enough to convert a value back and forth to get a mismatch, at least in principle. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 12:32:22 2019 Received: (at 32210) by debbugs.gnu.org; 18 Nov 2019 17:32:22 +0000 Received: from localhost ([127.0.0.1]:46187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWksw-0006LL-3W for submit@debbugs.gnu.org; Mon, 18 Nov 2019 12:32:22 -0500 Received: from quimby.gnus.org ([95.216.78.240]:39146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWkss-0006Kf-GR for 32210@debbugs.gnu.org; Mon, 18 Nov 2019 12:32:19 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWksh-00041R-Gh; Mon, 18 Nov 2019 18:32:09 +0100 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> Date: Mon, 18 Nov 2019 18:32:06 +0100 In-Reply-To: (Robert Pluim's message of "Mon, 18 Nov 2019 11:55:09 +0100") Message-ID: <87wobxozu1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > I tried here with 'Noto Sans CJK HK', which seems to have every > variant under the sun, and got: > > Weight: 400, symbol normal > Weight: 500, symbol semi-bold > > I donʼt know if Debian Stable ha [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: Eli Zaretskii , carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Robert Pluim writes: > I tried here with 'Noto Sans CJK HK', which seems to have every > variant under the sun, and got: > > Weight: 400, symbol normal > Weight: 500, symbol semi-bold > > I don=CA=BCt know if Debian Stable has that font. I didn't have the HK variant, but I used CJP JP, and got the same as you. However, I don't see any difference between those two in Emacs. Regular: --=-=-= Content-Type: image/jpeg Content-Disposition: inline; filename=screenC5TGnt.jpg Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAQAAAQABAAD/2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/oh O/iS+/8ALS9XPTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTX//2Q== --=-=-= Content-Type: text/plain But the frame did shrink when I chose Medium... and doesn't unshrink if I choose Regular again. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 19 03:23:49 2019 Received: (at 32210) by debbugs.gnu.org; 19 Nov 2019 08:23:49 +0000 Received: from localhost ([127.0.0.1]:46550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWynY-0003V8-Pi for submit@debbugs.gnu.org; Tue, 19 Nov 2019 03:23:48 -0500 Received: from quimby.gnus.org ([95.216.78.240]:49184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWynT-0003Ur-FD for 32210@debbugs.gnu.org; Tue, 19 Nov 2019 03:23:43 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWynH-0002mG-OP; Tue, 19 Nov 2019 09:23:30 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> Date: Tue, 19 Nov 2019 09:23:26 +0100 In-Reply-To: <83muct2izq.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 18 Nov 2019 19:26:49 +0200") Message-ID: <87r224nukh.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > I'm not surprised. Just look at the different conversions of weight > symbols into numbers, and you will see the mess. For example, > font_parse_fcname obviously supports only a subset of weight val [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > I'm not surprised. Just look at the different conversions of weight > symbols into numbers, and you will see the mess. For example, > font_parse_fcname obviously supports only a subset of weight values, > so it's enough to convert a value back and forth to get a mismatch, at > least in principle. Yup. I think somebody (ahem) will have to carve out some serious time and go through all the back-and-forth font parsing functions and ensure that they all agree with each other to avoid these mismatches. I don't have the stamina to do that right now, so if somebody else wants to look into it, it's fine by me. :-) But if not, I'll try to have a whack at it sometime later. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 13 16:29:38 2021 Received: (at control) by debbugs.gnu.org; 13 Oct 2021 20:29:38 +0000 Received: from localhost ([127.0.0.1]:33680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maksc-0006lF-FY for submit@debbugs.gnu.org; Wed, 13 Oct 2021 16:29:38 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maksS-0006kv-KP for control@debbugs.gnu.org; Wed, 13 Oct 2021 16:29:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hdFD97EbKMdk2mzFjwqgiRX8NxJ4Mg45ffqlsWKEdGk=; b=GD5N9LFDNrzGkfx0fFy7BkhnFO lOK0gw/u4AGPTXQ9cJ+EiNClg0do+LzOI3IKd5zZOVCgaUzGbCT4otDMk5tKnKiEbU1d800PGVLNk QuviWTSLoqjF7AZY5Zp0o4ipWMIGe7pLWV0OgG1XquOZso3sEKjf3qUx4+A3T9kMfd84=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maksL-0003J8-52 for control@debbugs.gnu.org; Wed, 13 Oct 2021 22:29:23 +0200 Date: Wed, 13 Oct 2021 22:29:20 +0200 Message-Id: <87v9201xen.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51155 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: forcemerge 51155 32210 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) forcemerge 51155 32210 quit From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 08:58:28 2021 Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 12:58:28 +0000 Received: from localhost ([127.0.0.1]:52997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdBAp-0008RD-UB for submit@debbugs.gnu.org; Wed, 20 Oct 2021 08:58:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdBAn-0008Qy-GI for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 08:58:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YUk2T+tfSgpRN1QFeRzN3h34RKp2yOQf6Jka83NRJoE=; b=uJuGvWKFGyXHrTp7LxY/Ox1fQV G7TO7gKUdFmtv4n/XO+AXqQLzhUcZcEtVuM8CsflsRU0v9vaGvKGmHtVGvn6kFgTXU+BE9j4+ixM/ 3oEIx5Y6feZVfSfnbYX/hBQ8RA6jrUWG9rMz584dZIE0w2UQMbWUTxL2XvZeNAQ8i+0s=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdBAe-0007vO-Av; Wed, 20 Oct 2021 14:58:18 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> X-Now-Playing: The Beatles's _Sgt. Peppers Lonely Hearts Club Band (3)_: "Being For The Benefit Of Mr. Kite ! (Take 7)" Date: Wed, 20 Oct 2021 14:58:12 +0200 In-Reply-To: <87r224nukh.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 19 Nov 2019 09:23:26 +0100") Message-ID: <87lf2nn997.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > I don't have the stamina to do that right now, so if somebody else wants > to look into it, it's fine by me. :-) But if not, I'll try to have a > whack at it sometime later. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > I don't have the stamina to do that right now, so if somebody else wants > to look into it, it's fine by me. :-) But if not, I'll try to have a > whack at it sometime later. Man, this font stuff is convoluted. I mean, the programming -- it's all via indirect methods for no particular reason. Anyway, I've added all the new weights, and things... mostly work. But I'm having problems actually understanding this table: /* Table of weight numeric values and their names. This table must be sorted by numeric values in ascending order. */ static const struct table_entry weight_table[] = { { 0, { "thin" }}, - { 20, { "ultra-light", "ultralight" }}, - { 40, { "extra-light", "extralight" }}, - { 50, { "light" }}, - { 75, { "semi-light", "semilight", "demilight", "book" }}, - { 100, { "normal", "medium", "regular", "unspecified" }}, - { 180, { "semi-bold", "semibold", "demibold", "demi" }}, - { 200, { "bold" }}, - { 205, { "extra-bold", "extrabold" }}, - { 210, { "ultra-bold", "ultrabold", "black" }} What are those numbers? Is it just an ordering, and it doesn't matter what the numbers are? Or are they used when instantiating fonts somewhere? I'm just having puzzling issues with some of the new names but not others, and I just don't understand where certain font weights are coming from. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 09:10:58 2021 Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 13:10:58 +0000 Received: from localhost ([127.0.0.1]:53022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdBMv-0000Jf-Pg for submit@debbugs.gnu.org; Wed, 20 Oct 2021 09:10:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdBMu-0000JS-96 for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 09:10:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38670) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdBMo-0004nT-Hi; Wed, 20 Oct 2021 09:10:50 -0400 Received: from [87.69.77.57] (port=1158 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 1mdBMm-0006QA-7s; Wed, 20 Oct 2021 09:10:50 -0400 Date: Wed, 20 Oct 2021 16:11:00 +0300 Message-Id: <838rync04b.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87lf2nn997.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 20 Oct 2021 14:58:12 +0200) Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org > Date: Wed, 20 Oct 2021 14:58:12 +0200 > > /* Table of weight numeric values and their names. This table must be > sorted by numeric values in ascending order. */ > > static const struct table_entry weight_table[] = > { > { 0, { "thin" }}, > - { 20, { "ultra-light", "ultralight" }}, > - { 40, { "extra-light", "extralight" }}, > - { 50, { "light" }}, > - { 75, { "semi-light", "semilight", "demilight", "book" }}, > - { 100, { "normal", "medium", "regular", "unspecified" }}, > - { 180, { "semi-bold", "semibold", "demibold", "demi" }}, > - { 200, { "bold" }}, > - { 205, { "extra-bold", "extrabold" }}, > - { 210, { "ultra-bold", "ultrabold", "black" }} > > What are those numbers? Is it just an ordering, and it doesn't matter > what the numbers are? Or are they used when instantiating fonts > somewhere? It's used in faces.el. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 09:20:46 2021 Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 13:20:46 +0000 Received: from localhost ([127.0.0.1]:53037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdBWQ-0000ZL-54 for submit@debbugs.gnu.org; Wed, 20 Oct 2021 09:20:46 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdBWF-0000Yx-2k for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 09:20:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4nepmBIOZIbjCUlUjjyGaHM2V3eFIY0xe+SQWrPIW0Q=; b=FVwRwmm3SaVXruj86lTErTilQE AjHMPVZJo9bHhxpBlThfZ0z05Oj8WC5aHmfox+rx3JgjLBIpwsecC97HSynnjGzGBV4UQLDKPemzG svr8ULUZFKDSyinOCtfA37l9HZVVQyD/4xc0HeOxKr9HndFjhL52EC0h64SFbd51/l2I=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdBW6-00084o-2w; Wed, 20 Oct 2021 15:20:28 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWclJg7LTGoSkT/ ///USQ+9AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UKFA0SI83dagoAAAGzSURBVCjPLZLNattAFIXv lKrUXjlgBeKVKVWhegq5pNB6JQedizUrx1Qmo6dwTQ22Vyl0RKNVWxgTzVP2jpw7m/m4f2cOQxQi l/M6UrSjvOhuKR+9V4o+ZfmHYhXlo3EA5BPk4zEBf6nEMOEfcfH8EQu6s1scH2PuYoBgM+3yeGPK EnTHty1Q8n0isF5lSYDZmxHImNWrygLr6yvpKbCr5igWuBEAfkLj2015HaahBMcYeLZUIcxUOFNj KZJRyBRYydIevlxxM6tdAEYegwe/4xdQKKLmpUzgQS4kYoFfEepkY8kGYAufwAYFEp/ZO0SXzDxi f+bo0pM6rh26Hnh41FJW9rCkdwG6vientwKsesiG28m/pj0KsM2IJn75J5TNa4HUL6cDspUfZuk2 Pc1VQnbvz4/pIfU1iQec+hFNva8PwR3vx9NdC30QoV/FqK1rUT/H5KogTp/udaIIdWuN7lDv4xnB t671Rjqdocb785Mx6FoHYr9hb4w+w0imqhtttPO+Ra+an5StRPDFECe/JHgN2Ypq/Ki+B5if9v1j +8yig/Yo1kmAh0SG9oYJ1IiZL/AfYejDMGPqrdgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTAt MjBUMTM6MTg6MzUrMDA6MDCExJN7AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEwLTIwVDEzOjE4 OjM1KzAwOjAw9ZkrxwAAAABJRU5ErkJggg== X-Now-Playing: The Beatles's _Sgt. Peppers Lonely Hearts Club Band (3)_: "Penny Lane (Take 6 Instrumental)" Date: Wed, 20 Oct 2021 15:20:25 +0200 In-Reply-To: <838rync04b.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Oct 2021 16:11:00 +0300") Message-ID: <87h7dbn886.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> - { 205, { "extra-bold", "extrabold" }}, >> - { 210, { "ultra-bold", "ultrabold", "black" }} >> >> What are those numbers? Is it just an ordering, and it doesn't matter >> what the numbers are? Or [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> - { 205, { "extra-bold", "extrabold" }}, >> - { 210, { "ultra-bold", "ultrabold", "black" }} >> >> What are those numbers? Is it just an ordering, and it doesn't matter >> what the numbers are? Or are they used when instantiating fonts >> somewhere? > > It's used in faces.el. The numbers are? The data ends up in font-weight-table, but this is the only place I can find in faces.el that uses that variable: (defun face-valid-attribute-values (attribute &optional frame) [...] (:weight (mapcar #'(lambda (x) (cons (symbol-name (aref x 1)) (aref x 1))) font-weight-table)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 10:18:51 2021 Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 14:18:51 +0000 Received: from localhost ([127.0.0.1]:55087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdCQd-0004ks-Hs for submit@debbugs.gnu.org; Wed, 20 Oct 2021 10:18:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdCQb-0004kc-Rr for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 10:18:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41606) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdCQW-0000KY-Hr; Wed, 20 Oct 2021 10:18:44 -0400 Received: from [87.69.77.57] (port=1580 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 1mdCQW-0002wn-2p; Wed, 20 Oct 2021 10:18:44 -0400 Date: Wed, 20 Oct 2021 17:18:55 +0300 Message-Id: <834k9bbwz4.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87h7dbn886.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 20 Oct 2021 15:20:25 +0200) Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> <87h7dbn886.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org > Date: Wed, 20 Oct 2021 15:20:25 +0200 > > Eli Zaretskii writes: > > >> - { 205, { "extra-bold", "extrabold" }}, > >> - { 210, { "ultra-bold", "ultrabold", "black" }} > >> > >> What are those numbers? Is it just an ordering, and it doesn't matter > >> what the numbers are? Or are they used when instantiating fonts > >> somewhere? > > > > It's used in faces.el. > > The numbers are? The data ends up in font-weight-table, but this is the > only place I can find in faces.el that uses that variable: > > (defun face-valid-attribute-values (attribute &optional frame) > > [...] > > (:weight > (mapcar #'(lambda (x) (cons (symbol-name (aref x 1)) (aref x 1))) > font-weight-table)) > Not sure what exactly you are asking, but does font_style_to_value answer that? From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 10:28:37 2021 Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 14:28:38 +0000 Received: from localhost ([127.0.0.1]:55097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdCa5-00051P-NX for submit@debbugs.gnu.org; Wed, 20 Oct 2021 10:28:37 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdCa2-00051A-Pi for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 10:28:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bdpLFlp8njql4gz7gwMzSwmF5wuxVszOvLinYBwa5+k=; b=BQinMrwLVgEVJu5wOrJi+EqVh6 aI3xs3FLJXVeyAoAxdwBUNNtFX5fU+JFo8ojc0VVlvhPcJ9NB1OzybrIlTQ6BzVAqcPcHlkM+vAbV VuCzi98YdGj/pwXUfCDyKDI9ge4CKubw0pGVGklVLYSGpu7LZeb8im9okGyTQRUIR7BE=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdCZt-00004s-LA; Wed, 20 Oct 2021 16:28:28 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> <87h7dbn886.fsf@gnus.org> <834k9bbwz4.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEWhlEBJRSr////o CFXIAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAABLAAAASwAc4jpUgAAAAd0SU1FB+UKFA4XIsXrEIAA AADgSURBVCjPdZLRCgQhCEUVxneD/J+CejfI//+VtWxmdx9GmMHDvZlKAO+BdqKcXG/4U9AUqDEt oF+F0r/tR3kFfAXg0Ut5musi30Yzj6/CYz4CjJ7KA/XqkWxI0h+lpbTu4OXFBmukAL4AJwNyO6Db vsA/5QMrSI/trvoDDNz4htZS1kgzSascgF0HVw24xGQ03b1zrdV6juGv7OvIqe4Ta0E6B22lqBjV HqWzFDSxPQNQ8Q3aPNvz7Yhp1XONhwSg22xaiQ6WQoanUS8gdmz+p/UaQvBbux+7h55kou9v6gPB V0n+mfEx0AAAAFplWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAAB AAAAUgEoAAMAAAABAAEAAAITAAMAAAABAAEAAAAAAAAAAAEsAAAAAQAAASwAAAABYCqauwAAACV0 RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMC0yMFQxNDoyMzozNCswMDowMD7CA2EAAAAldEVYdGRhdGU6 bW9kaWZ5ADIwMjEtMTAtMjBUMTQ6MjM6MzQrMDA6MDBPn7vdAAAAF3RFWHRleGlmOllDYkNyUG9z aXRpb25pbmcAMawPgGMAAAAASUVORK5CYII= X-Now-Playing: Rude Boy - =?utf-8?Q?=E2=80=98Superstylin'=E2=80=99?= (Exclusive remix)'s _Late Night Tales: Version Excursions (Selected By Don Letts)_: "Originally recorded by Groove Armada" Date: Wed, 20 Oct 2021 16:28:25 +0200 In-Reply-To: <834k9bbwz4.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Oct 2021 17:18:55 +0300") Message-ID: <87a6j3n52u.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Not sure what exactly you are asking, but does font_style_to_value > answer that? No, that function is fine. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > Not sure what exactly you are asking, but does font_style_to_value > answer that? No, that function is fine. I'm asking: What are the semantics of the integers in weight_table? Do they have to match up with numbers somewhere else? The comment just says that they have to be monotonically increasing, but not what their meaning is. If I change { 210, { "black", "heavy" }}, to { 212, { "black", "heavy" }}, changing to the "black" weight still works. If I change it to { 215, { "black", "heavy" }}, it no longer works, and the font machinery chooses the "normal" font instead... which is at 100. So I'm guessing the numbers are used in font_score somehow, but the logic is oblique. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 10:42:28 2021 Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 14:42:28 +0000 Received: from localhost ([127.0.0.1]:55119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdCnU-0005S5-L4 for submit@debbugs.gnu.org; Wed, 20 Oct 2021 10:42:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdCnT-0005Rt-9k for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 10:42:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JhmAtLbTKBFiECSI1AIdflxBjrwbI78FK1iFn64te80=; b=RqN2gre+aB8d4TXiA8Nw6vhk8E sOie927blyxuRsONlpWNi25Of1Q1LJs/s7fQtElte3ImslAee+dsIVq2HRmERKKTMWhvMrW/ozLDb NKS23fYalAOeyhz4s2gbDhwo0PQtLIx6rY6w84cHHFtHkJujWywk0KHR4gGvkGGT2JFI=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdCnK-0000DG-8z; Wed, 20 Oct 2021 16:42:20 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> <87h7dbn886.fsf@gnus.org> <834k9bbwz4.fsf@gnu.org> <87a6j3n52u.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEWhlEBJRSr////o CFXIAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAABLAAAASwAc4jpUgAAAAd0SU1FB+UKFA4XIsXrEIAA AADgSURBVCjPdZLRCgQhCEUVxneD/J+CejfI//+VtWxmdx9GmMHDvZlKAO+BdqKcXG/4U9AUqDEt oF+F0r/tR3kFfAXg0Ut5musi30Yzj6/CYz4CjJ7KA/XqkWxI0h+lpbTu4OXFBmukAL4AJwNyO6Db vsA/5QMrSI/trvoDDNz4htZS1kgzSascgF0HVw24xGQ03b1zrdV6juGv7OvIqe4Ta0E6B22lqBjV HqWzFDSxPQNQ8Q3aPNvz7Yhp1XONhwSg22xaiQ6WQoanUS8gdmz+p/UaQvBbux+7h55kou9v6gPB V0n+mfEx0AAAAFplWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAAB AAAAUgEoAAMAAAABAAEAAAITAAMAAAABAAEAAAAAAAAAAAEsAAAAAQAAASwAAAABYCqauwAAACV0 RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMC0yMFQxNDoyMzozNCswMDowMD7CA2EAAAAldEVYdGRhdGU6 bW9kaWZ5ADIwMjEtMTAtMjBUMTQ6MjM6MzQrMDA6MDBPn7vdAAAAF3RFWHRleGlmOllDYkNyUG9z aXRpb25pbmcAMawPgGMAAAAASUVORK5CYII= X-Now-Playing: Cornell Campbell - =?utf-8?Q?=E2=80=98Ital?= City =?utf-8?Q?Dub=E2=80=99?= (Exclusive remix)'s _Late Night Tales: Version Excursions (Selected By Don Letts)_: "Originally recorded by Marvin Gaye" Date: Wed, 20 Oct 2021 16:42:17 +0200 In-Reply-To: <87a6j3n52u.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 20 Oct 2021 16:28:25 +0200") Message-ID: <875ytrn4fq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > If I change > > { 210, { "black", "heavy" }}, fc-query /usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > If I change > > { 210, { "black", "heavy" }}, fc-query /usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc has weight: 210(f)(s) So these are actually the weights in the font files? Which is a separate system from the Pango weights... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 10:48:05 2021 Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 14:48:05 +0000 Received: from localhost ([127.0.0.1]:55123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdCsv-0005fZ-8E for submit@debbugs.gnu.org; Wed, 20 Oct 2021 10:48:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdCst-0005f3-QN for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 10:48:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=B1+LPkiKbuiNSc0XMnrH8xM3BUFMdupFt5LjFqBWnQY=; b=S5pWqJpWym/B7Q+XuW1x7WFqG5 nsrdXdGlyUbvB1+YO9qo+KmUQRw/ijwXvQnAp09sjaJ/pjvTZwOU5VJVQwXgdepNBV11uHBJ9wrDu E/FG4EMA/x++LXHYMNF3+BcP8IIkGUszV6ta+hk31jddWzNBJhQ9cW4T1HBEphlWS85M=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdCsl-0000GQ-7I; Wed, 20 Oct 2021 16:47:57 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> <87h7dbn886.fsf@gnus.org> <834k9bbwz4.fsf@gnu.org> <87a6j3n52u.fsf@gnus.org> <875ytrn4fq.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEWhlEBJRSr////o CFXIAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAABLAAAASwAc4jpUgAAAAd0SU1FB+UKFA4XIsXrEIAA AADgSURBVCjPdZLRCgQhCEUVxneD/J+CejfI//+VtWxmdx9GmMHDvZlKAO+BdqKcXG/4U9AUqDEt oF+F0r/tR3kFfAXg0Ut5musi30Yzj6/CYz4CjJ7KA/XqkWxI0h+lpbTu4OXFBmukAL4AJwNyO6Db vsA/5QMrSI/trvoDDNz4htZS1kgzSascgF0HVw24xGQ03b1zrdV6juGv7OvIqe4Ta0E6B22lqBjV HqWzFDSxPQNQ8Q3aPNvz7Yhp1XONhwSg22xaiQ6WQoanUS8gdmz+p/UaQvBbux+7h55kou9v6gPB V0n+mfEx0AAAAFplWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAAB AAAAUgEoAAMAAAABAAEAAAITAAMAAAABAAEAAAAAAAAAAAEsAAAAAQAAASwAAAABYCqauwAAACV0 RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMC0yMFQxNDoyMzozNCswMDowMD7CA2EAAAAldEVYdGRhdGU6 bW9kaWZ5ADIwMjEtMTAtMjBUMTQ6MjM6MzQrMDA6MDBPn7vdAAAAF3RFWHRleGlmOllDYkNyUG9z aXRpb25pbmcAMawPgGMAAAAASUVORK5CYII= X-Now-Playing: Matumbi - =?utf-8?B?4oCYKEkgQ2Fu4oCZdA==?= Get Enough Of) That Reggae =?utf-8?Q?Stuff=E2=80=99's?= _Late Night Tales: Version Excursions (Selected By Don Letts)_: "(Dennis Bovell Remix) (Exclusive remix) =?utf-8?Q?=E2=80=93=22?= Date: Wed, 20 Oct 2021 16:47:53 +0200 In-Reply-To: <875ytrn4fq.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 20 Oct 2021 16:42:17 +0200") Message-ID: <871r4fn46e.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > fc-query /usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc > > has > > weight: 210(f)(s) So now I've got all the test cases working with one font, and I think I'm going to take a long holiday to rest up after that ordeal. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > fc-query /usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc > > has > > weight: 210(f)(s) So now I've got all the test cases working with one font, and I think I'm going to take a long holiday to rest up after that ordeal. That is, until tomorrow. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 12:13:01 2021 Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 16:13:01 +0000 Received: from localhost ([127.0.0.1]:55285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdED4-0004BJ-4g for submit@debbugs.gnu.org; Wed, 20 Oct 2021 12:13:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdECz-0004B3-2n for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 12:12:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46312) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdECt-0001rx-P4; Wed, 20 Oct 2021 12:12:47 -0400 Received: from [87.69.77.57] (port=4636 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 1mdECs-0008RA-LI; Wed, 20 Oct 2021 12:12:47 -0400 Date: Wed, 20 Oct 2021 19:12:58 +0300 Message-Id: <8335ovbrp1.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <875ytrn4fq.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 20 Oct 2021 16:42:17 +0200) Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> <87h7dbn886.fsf@gnus.org> <834k9bbwz4.fsf@gnu.org> <87a6j3n52u.fsf@gnus.org> <875ytrn4fq.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org > Date: Wed, 20 Oct 2021 16:42:17 +0200 > > > If I change > > > > { 210, { "black", "heavy" }}, > > fc-query /usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc > > has > > weight: 210(f)(s) > > So these are actually the weights in the font files? Which is a > separate system from the Pango weights... Yes, and see, e.g., ftfont.c, where we query fontconfig for these values. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 22:34:03 2021 Received: (at 32210) by debbugs.gnu.org; 21 Oct 2021 02:34:03 +0000 Received: from localhost ([127.0.0.1]:55799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdNu7-0005AY-JW for submit@debbugs.gnu.org; Wed, 20 Oct 2021 22:34:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdNu5-0005A2-5q for 32210@debbugs.gnu.org; Wed, 20 Oct 2021 22:34:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ca78+irQkDYy1m+Ba43Yhh1zoZSBUY1WDMLZYpH3uKs=; b=FHzaI2Z99/Mm43DDrsdOfyMYw7 EZW0S3hZmL/I99wd6TajT2RpeIqmiP5KFQO2sziUmz0m6xsJqdtaRsdPRJphn84Y2AiekpBAe1MYt anA7pkyzzixkasqunrCPKZsWJOn9hUazPUJ/nWd4+f5kwLu4Gr85gUbfmsC7YAoaj2zU=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdNtv-00058I-Ge; Thu, 21 Oct 2021 04:33:54 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> <87h7dbn886.fsf@gnus.org> <834k9bbwz4.fsf@gnu.org> <87a6j3n52u.fsf@gnus.org> <875ytrn4fq.fsf@gnus.org> <8335ovbrp1.fsf@gnu.org> X-Now-Playing: Alice Coltrane's _Kirtan Turiya Sings_: "Jai Ramachandra" Date: Thu, 21 Oct 2021 04:33:49 +0200 In-Reply-To: <8335ovbrp1.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Oct 2021 19:12:58 +0300") Message-ID: <875ytrksxe.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Yes, and see, e.g., ftfont.c, where we query fontconfig for these > values. Right. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > Yes, and see, e.g., ftfont.c, where we query fontconfig for these > values. Right. I've now gone through all the fonts I have here that have different weights for medium and regular, and with the adjustments in the weights and Pango weights, I can now select both of them. (And the other weights for Noto and DejaVu, which are the main fonts that I've tested with, also work.) So I've pushed the changes now to the trunk. If these changes don't work with other fonts, please let me know. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 21 03:01:17 2021 Received: (at 32210) by debbugs.gnu.org; 21 Oct 2021 07:01:17 +0000 Received: from localhost ([127.0.0.1]:56174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdS4i-0001z6-My for submit@debbugs.gnu.org; Thu, 21 Oct 2021 03:01:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdS4g-0001ys-F8 for 32210@debbugs.gnu.org; Thu, 21 Oct 2021 03:01:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41446) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdS4a-0005H6-Ju; Thu, 21 Oct 2021 03:01:09 -0400 Received: from [87.69.77.57] (port=3792 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 1mdS4Z-0005PI-M1; Thu, 21 Oct 2021 03:01:08 -0400 Date: Thu, 21 Oct 2021 10:01:20 +0300 Message-Id: <83bl3iamkf.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <875ytrksxe.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 21 Oct 2021 04:33:49 +0200) Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> <87h7dbn886.fsf@gnus.org> <834k9bbwz4.fsf@gnu.org> <87a6j3n52u.fsf@gnus.org> <875ytrn4fq.fsf@gnus.org> <8335ovbrp1.fsf@gnu.org> <875ytrksxe.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org > Date: Thu, 21 Oct 2021 04:33:49 +0200 > > I've now gone through all the fonts I have here that have different > weights for medium and regular, and with the adjustments in the weights > and Pango weights, I can now select both of them. (And the other > weights for Noto and DejaVu, which are the main fonts that I've tested > with, also work.) > > So I've pushed the changes now to the trunk. If these changes don't > work with other fonts, please let me know. Hmm... bother: > static const struct table_entry weight_table[] = > { > { 0, { "thin" }}, > - { 20, { "ultra-light", "ultralight" }}, > - { 40, { "extra-light", "extralight" }}, > + { 40, { "ultra-light", "ultralight", "extra-light", "extralight" }}, This loses the distinction between ultra-light and extra-light. Are these two really indistinguishable in all supported font backends? > static Lisp_Object > w32_to_fc_weight (int n) > { > - if (n >= FW_HEAVY) return intern ("black"); > + if (n >= FW_HEAVY) return Qbold; > if (n >= FW_EXTRABOLD) return Qextra_bold; This doesn't look right. Should that Qbold be Qblack? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 21 08:50:11 2021 Received: (at 32210) by debbugs.gnu.org; 21 Oct 2021 12:50:11 +0000 Received: from localhost ([127.0.0.1]:56451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXWM-0007kj-NT for submit@debbugs.gnu.org; Thu, 21 Oct 2021 08:50:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXWJ-0007k9-Rz for 32210@debbugs.gnu.org; Thu, 21 Oct 2021 08:50:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+l+Igz/XbsixEEvvvsfOo5PzCBGTKR8e8VAiXixSd1s=; b=R8hJl6ajFXcLgqepfDiiUfYQDc F6rfxynXY0TB8zWDV/0oeQzXKnjAqonXMRSuWdq4pIqHVseP0wV+l++rrm46zHkRJlIkO2ZNudfZW WYLfsW9i4iCW6xuEZTWq9IhcOnCwfbOns6VJwNCYMI9fRTM4MiOG63iWqGYsVtkzzH7s=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdXW8-0001EM-U8; Thu, 21 Oct 2021 14:50:00 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#32210: Support medium weighted fonts References: <87v9riaofa.fsf@gnus.org> <83pnhq5w92.fsf@gnu.org> <87lfse5t5g.fsf@gnus.org> <835zji5qyn.fsf@gnu.org> <87k17xqxzy.fsf@gnus.org> <87eey5qxeh.fsf@gnus.org> <835zjh4243.fsf@gnu.org> <871ru5qf2w.fsf@gnus.org> <83muct2izq.fsf@gnu.org> <87r224nukh.fsf@gnus.org> <87lf2nn997.fsf@gnus.org> <838rync04b.fsf@gnu.org> <87h7dbn886.fsf@gnus.org> <834k9bbwz4.fsf@gnu.org> <87a6j3n52u.fsf@gnus.org> <875ytrn4fq.fsf@gnus.org> <8335ovbrp1.fsf@gnu.org> <875ytrksxe.fsf@gnus.org> <83bl3iamkf.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVmtfJ/f423y8+b X1lLLzj///8Z8KpJAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UKFQQgFC99x54AAAFtSURBVDjLrdNR koMgDAZg0B6AQA6g0AMI4QBlyf3PtIFWq6u7MzvT/6Ez8DUkjKrUB6ONVtYPRgNYDQPADBasQC7B xjgso+OCGbgiW+ZJ6RTmuICKY3NtgnFzSsEoHUFlExXAHWwBM6rs5oICnA2qOLiI1WT6CvITapHe kxTLQfAYp+j9MspRkKJAwckpQFhGKOQE0NkH9qmUU5mtCTWOVUkF2WWc1tsM5/vBFjP4wb8iEKiF mWjx78gF5/ZnJK5gnnvzD+DSwa4VQwPnmLkuPgD0g2kFcDk3kLSWmd9AvAPeVVSB3uN4lOO8VvSC vE6FlV49glxIBmnQTsp91eBek897kAWXBpYS7oE7gA+eEj17NOAXtFnbxCe4V6JAvo97AEcyXkwb uDdIEm2AB6ALuGfZrCsQbbA9pwa8pRwe7e0vKHiC9fU5vlKyNp/8BH//Nk+t18iYl/s3Bj7NphuU hI/rCj5X9CBe9/h3vgHNwHGMbot6eAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMC0yMVQwNDoz MjoyMCswMDowMBsM4/UAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTAtMjFUMDQ6MzI6MjArMDA6 MDBqUVtJAAAAAElFTkSuQmCC X-Now-Playing: You Make Me Feel (Mighty Real)'s _Sylvester-Step II_: "epilogue" Date: Thu, 21 Oct 2021 14:49:56 +0200 In-Reply-To: <83bl3iamkf.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 21 Oct 2021 10:01:20 +0300") Message-ID: <87bl3ih79n.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> static const struct table_entry weight_table[] = >> { >> { 0, { "thin" }}, >> - { 20, { "ultra-light", "ultralight" }}, >> - { 40, { "extra-light", "extralight" }}, >> + { 40, { "ultra-light", "ult [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32210 Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> static const struct table_entry weight_table[] = >> { >> { 0, { "thin" }}, >> - { 20, { "ultra-light", "ultralight" }}, >> - { 40, { "extra-light", "extralight" }}, >> + { 40, { "ultra-light", "ultralight", "extra-light", "extralight" }}, > > This loses the distinction between ultra-light and extra-light. Are > these two really indistinguishable in all supported font backends? I added them together because the Gtk documentation (and the Windows one, I think? I've been working on this for a while, and some of the details are vague) said that there's only one weight between "light" and "thin", so people specifying "ultra-light" wouldn't actually get it, because 20 is too far from being correct. I fc-queried all the 1K fonts on this system, and indeed -- none of them had a weight of 20. There were weights at 0 and 40, though (and none inbetween). So I'm as confident about that change as... er... well, it's font stuff, so I'm not confident at all, but I think it's worth a try. I'll test this stuff on FreeBSD and see what it says there, once I get the VMs up again on my new VM machine. >> static Lisp_Object >> w32_to_fc_weight (int n) >> { >> - if (n >= FW_HEAVY) return intern ("black"); >> + if (n >= FW_HEAVY) return Qbold; >> if (n >= FW_EXTRABOLD) return Qextra_bold; > > This doesn't look right. Should that Qbold be Qblack? Good catch. Now fixed. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 02 12:53:15 2022 Received: (at control) by debbugs.gnu.org; 2 Feb 2022 17:53:15 +0000 Received: from localhost ([127.0.0.1]:53425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFJoh-000632-GP for submit@debbugs.gnu.org; Wed, 02 Feb 2022 12:53:15 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFJog-00062k-3a for control@debbugs.gnu.org; Wed, 02 Feb 2022 12:53:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kzGVtq1P8SiM/Cm4bVRfIE9DmfpX3F62FCGr7Q6GEFE=; b=j6KUuJBan+WdSDUdoSn9eJ3DUu f9rhV8W3emUq6kepnjd8lcoBEXUSDLYM2FxBJOn79Or1qvg4bKl7QyYGUSUFm43z3q6ovh3CrDHeH 08EC5AzbeKMtdZTxG4SnARd457jqvbE3FNc/6zA1+NAYZyUMSAsBi27djHv+5qd0BB3U=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFJoX-0006OX-Sn for control@debbugs.gnu.org; Wed, 02 Feb 2022 18:53:08 +0100 Date: Wed, 02 Feb 2022 18:53:05 +0100 Message-Id: <87pmo5rw8u.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51155 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 51155 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 51155 quit From unknown Sat Jun 14 08:54:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Mar 2022 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator