From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32210: Support medium weighted fonts Date: Sun, 17 Nov 2019 17:59:53 +0200 Message-ID: <83pnhq5w92.fsf@gnu.org> References: <87v9riaofa.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="217879"; mail-complaints-to="usenet@blaine.gmane.org" Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 17 17:00:19 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iWMyF-000uRl-5f for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2019 17:00:15 +0100 Original-Received: from localhost ([::1]:54408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWMyD-0001Ng-Pt for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2019 11:00:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59932) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWMy3-0001MB-NE for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 11:00:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWMy2-000764-MS for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 11:00:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWMy2-00075z-Iv for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 11:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iWMy2-0003LO-Fa for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 11:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Nov 2019 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32210 X-GNU-PR-Package: emacs Original-Received: via spool by 32210-submit@debbugs.gnu.org id=B32210.157400640012818 (code B ref 32210); Sun, 17 Nov 2019 16:00:02 +0000 Original-Received: (at 32210) by debbugs.gnu.org; 17 Nov 2019 16:00:00 +0000 Original-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 Original-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 Original-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 Original-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 In-reply-to: <87v9riaofa.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 17 Nov 2019 09:37:45 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171805 Archived-At: > 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.