From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#32210: Support medium weighted fonts Date: Wed, 20 Oct 2021 14:58:12 +0200 Message-ID: <87lf2nn997.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10604"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 14:59:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdBBW-0002ai-8X for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 14:59:10 +0200 Original-Received: from localhost ([::1]:51098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdBBV-0006I6-8V for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 08:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdBBO-0006HR-EM for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 08:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdBBO-0007zw-5X for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 08:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdBBN-0008Rz-Vg for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 08:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 12:59:01 +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.163473470832443 (code B ref 32210); Wed, 20 Oct 2021 12:59:01 +0000 Original-Received: (at 32210) by debbugs.gnu.org; 20 Oct 2021 12:58:28 +0000 Original-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 Original-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=; Original-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 X-Now-Playing: The Beatles's _Sgt. Peppers Lonely Hearts Club Band (3)_: "Being For The Benefit Of Mr. Kite ! (Take 7)" In-Reply-To: <87r224nukh.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 19 Nov 2019 09:23:26 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217663 Archived-At: 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