From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yukio Siraichi Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Use fontconfig spec for parsing font-weight. Date: Mon, 17 May 2021 19:11:33 +0900 Message-ID: References: <1b6ef436-2f32-bfed-f0a8-f55aa4852ccd@gmail.com> <83mtstu1m5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14678"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 17 12:23:35 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1liaPP-0003eJ-EB for ged-emacs-devel@m.gmane-mx.org; Mon, 17 May 2021 12:23:35 +0200 Original-Received: from localhost ([::1]:54086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liaPN-0003KO-Ji for ged-emacs-devel@m.gmane-mx.org; Mon, 17 May 2021 06:23:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liaE3-000460-7E for emacs-devel@gnu.org; Mon, 17 May 2021 06:11:51 -0400 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:36830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liaDv-0005SW-Pq; Mon, 17 May 2021 06:11:50 -0400 Original-Received: by mail-pf1-x42c.google.com with SMTP id e19so4611788pfv.3; Mon, 17 May 2021 03:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=h3TuwYfJ1y24AK7IYF4NlIsxsaKpnkHUntvJ/k4MYjQ=; b=DDx9jhQ7lkcrxx6/7EfC+/muzFaRVdbaXCIEJcyWNwpBWosuki07+JGWinDYdCz3r7 tWN3zzhhcsT+Hxx6meC3sTZEylgo+1MBHtcAg7bXf32dXABpqNsMFRyyjMML0uJHItKT 7iiCmTxNhqM+Gr71oDLg+9NC1siIoZWGIP5L9MlfvWShGkbFmTOy0qjMCR7gNQcbudDA yUJEfv9wJUmE1Eudm8qlGMaI7Vfipv2Sce7IV2ZJJ3tT6FIfFXAxY0XQffUg+1siEkix OSxvXJuQ8wV4gdijKDWU5YNSQkb3IsswbTNVmo69EO1Jjh3OA4bnZtLBt9aQ6g3VYz7k v2eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=h3TuwYfJ1y24AK7IYF4NlIsxsaKpnkHUntvJ/k4MYjQ=; b=P4uWDGafLuC3AS8UApeaDlN1G+SLYU5XLCuAklPMQ/pb+KDckmfI9b886qn7CbEOwK 5Jkoq9459rnMz3EJHMajSveJYJQqMcylgJff2enW4FyA+HQSjT7aeM6B/KULjpQ2eZfM DZXzGB5bhmnTEi+ZBbzuP7qvL4BxnJJZKe1BD7zGT+uky6zxa657u82sZP9Fofc6mBM6 G7vdh2Eh4LPbW6GvRsVhdn9/Dm/yuKuN+aXRkfig79WX4pL3VqGOD7kijSa6F7uLlsZH Is9Yzpkrg0S+f6iNE6hyUkVKbPiei6qe4tkFiMS26ydpft9ZBr9f2hb+DLvAJlFy31Hy y6kQ== X-Gm-Message-State: AOAM533qMs9xasdRp0F1EMkA29U27NWvb8MISjMXYwSd6iRKKMIgi+IX Sp8JL1aupa1YDn4FEt5JmblkLn7rGraRMw== X-Google-Smtp-Source: ABdhPJyoslVo3/rltnHnGVZQR2zDYoFlge4PD0uWzj7MmiMiPi16ZvAp1KICQS59l/uhNdE0fKPYrw== X-Received: by 2002:aa7:9a0e:0:b029:2dc:70d1:2224 with SMTP id w14-20020aa79a0e0000b02902dc70d12224mr3202249pfj.1.1621246301759; Mon, 17 May 2021 03:11:41 -0700 (PDT) Original-Received: from [192.168.11.15] (FLH1Afk096.stm.mesh.ad.jp. [125.196.174.96]) by smtp.gmail.com with ESMTPSA id o10sm10378842pjl.2.2021.05.17.03.11.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 03:11:41 -0700 (PDT) In-Reply-To: <83mtstu1m5.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=sir.yukio@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269398 Archived-At: > But 'semi-light' is already supported by Emacs, so why did you need to > add the 'book' attribute? I didn't really add the 'book' attribute. It was already there (as the last alias of 'semi-light'). I added a new row, and moved the 'semilight' aliases with it (left 'book' there, though). My guess is that, since it doesn't recognize the weight value (55) passed by 'fontconfig', it fallbacks to other weight values. So, what I did is to add a new weight value (the number that 'fontconfig' converted to, from the OTF file). > What happens if you do the above separately, that is with 2 calls > instead of just one: > > (set-face-attribute 'default nil :family "Cascadia Code") > (set-face-attribute 'default nil :weight 'semi-light) > > Does this work? Apparently, not.