From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Font selection depending on the face weight Date: Mon, 22 May 2023 16:40:54 +0300 Message-ID: <83ttw4pjq1.fsf@gnu.org> References: <87ilckwoay.fsf@valhala.localdomain> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4232"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Nicolas Martyanoff Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 22 15:41:31 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q15n1-0000vd-EC for ged-emacs-devel@m.gmane-mx.org; Mon, 22 May 2023 15:41:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q15m8-0005jA-33; Mon, 22 May 2023 09:40:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q15m5-0005iP-Oa for emacs-devel@gnu.org; Mon, 22 May 2023 09:40:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q15m4-0004HL-Kk; Mon, 22 May 2023 09:40:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bt5lx0wwX1haTXvq9b0AeH3jvx1fMQV7SFl0gTni8jc=; b=JB3YDkt2Htfl U+J4u5YrplN0Vs7oVKRFR1IwMdYPksz/w2GIMA5kaWR6kycyLNw7wcx8BoCAN6mdGoEC/w5H53Wh5 Df3tRcJGeYFTSVlIKDcAsEruIT+GduTtrbSEqaR61HPK1wIaVCUAFqHhtbWAb3JeFO2s9kHLM5IlB rgnc1MrdE7upNvaLZePDIixS8ZtIk5UYm5PSDxB6SjIz/fL/Kw6oHPo2bbifAydPRhcpr5Vg/YKBV IsTuXHq1yTsOHki1j1r1Mv8WkT08kqNcCdygfSbilMfjuMIv3SyJms0Iv5KiT+QlR7rNXrmEOo5Sa a+GXtcJjI0aE3iUeq6cFgg==; Original-Received: from [87.69.77.57] (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 1q15m4-00071R-44; Mon, 22 May 2023 09:40:32 -0400 In-Reply-To: <87ilckwoay.fsf@valhala.localdomain> (message from Nicolas Martyanoff on Mon, 22 May 2023 14:20:05 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306271 Archived-At: > From: Nicolas Martyanoff > Date: Mon, 22 May 2023 14:20:05 +0200 > > >From a quick search, Emacs uses font-weight-table to map numeric font > weights to symbolic weights, but I cannot find any link between these > numeric values and the weight names reported by other applications. > > Is there something I can do to control (or at least understand) the way > weights are mapped? See the beginning of src/font.c.