From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.help Subject: Re: script-representative-chars vs incomplete fonts Date: Mon, 13 Sep 2021 00:21:30 +0200 Message-ID: <87k0jlwi39.fsf@gmail.com> References: <878s02u5m6.fsf@gmail.com> <83tuiqfidr.fsf@gnu.org> <87sfy9wwks.fsf@gmail.com> <8335q9g0r5.fsf@gnu.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="5678"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 13 00:22:09 2021 Return-path: Envelope-to: geh-help-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 1mPXrV-0001I5-L8 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 13 Sep 2021 00:22:09 +0200 Original-Received: from localhost ([::1]:45668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPXrU-0003Id-FD for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 18:22:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPXqx-0003IF-MW for help-gnu-emacs@gnu.org; Sun, 12 Sep 2021 18:21:35 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:38445) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPXqw-0005VS-4n; Sun, 12 Sep 2021 18:21:35 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id k5-20020a05600c1c8500b002f76c42214bso5546136wms.3; Sun, 12 Sep 2021 15:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=aES4gpLi0ba1nCe4xrpokp4muMEJDap5+WuXJmVJdzM=; b=Qh4Q2rRVldixHY/ZAfyF04qgWwGvbYiVWAn5/wCdCqd0WMvuzDF42ZL68xYbZpnZH4 uEbSKU9cGYI5ygmWfc0bG8wHQQNdDFQXkEZHQ+7F2IbOyHEClmprUsqN78/aNhLYVY75 bCfcWBNIiBbC704Nlnt3MSU6f5MMF4F7KfSThYTttUWtVcwFrLua+yl1Pth77zdTQj22 YjNZSi7xzjL6fvESDyKA98eo51xPnyg+vOjmYqQM3eIPSu+w2X3zvyVDJvCz+OCe8nPV BE6K2V0taFC6GcOzMnez87L1ro5GwRrz37tn2XjpeDCA/ydsT61u482VsC42e87ovIJI uHOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=aES4gpLi0ba1nCe4xrpokp4muMEJDap5+WuXJmVJdzM=; b=hb+Twnq8s7id6psRquWVORlEGkI//AIDLmRb3LuLZPmX3DG+2BmWRLNQB1lhNW1jA2 9mPEXgppoRpJpIfukwEMcVlahOFGUdzgUJGlZn5d9VZFcCnPKKFfGVsE65AMdWvAMOMj xSW2KCgVLnzd6AIe2KWGMcsyj8CVdrByfnshd2NdquyR3aOp8C0ZuYEZTPGav/QZUyCm BjM1fNIs2rHoLUT5hITP91r446trDbCrHhPLzyhV0HNyz7ytVaPsmumW26qXBHUuGui/ CXWqJoGSWtKlb22xeQBr8XKg2AO8oVZI+KeZWbm4uE2p/18LWGv+h3rEyjlTyhKTe5Jz G3aQ== X-Gm-Message-State: AOAM532jdIWbB6xjiZsfQn8H/kgeqRPlsUHE1vh5hzpWTaUTOIPUo7Ej 24T28QGMSM1IUmOBhPelL9PpXemMpWs= X-Google-Smtp-Source: ABdhPJyHHbj+SH7WFyuCEPSsXKLL+zONTFqBVMSQTAFJCl1xd4Dvu9NGmgfIkm8tNrPMLT3D3arHhA== X-Received: by 2002:a1c:1c7:: with SMTP id 190mr7202677wmb.158.1631485291711; Sun, 12 Sep 2021 15:21:31 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:20e:d340:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id t6sm5052561wmj.12.2021.09.12.15.21.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 15:21:31 -0700 (PDT) In-Reply-To: <8335q9g0r5.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 12 Sep 2021 20:30:22 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x32c.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, 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133014 Archived-At: Eli Zaretskii writes: > I think it is easier to request both upper-case and lower-case > letters; since the lower-case letters are at fixed offsets from their > upper-case variants, we can compute the codepoints without changing > the original database. Noted. >> Not sure it makes sense as-is though, since it yields a vector; judging >> by script-representative-chars's docstring (and a cursory glance at >> ftfont_list and font_match_p), a list would be more appropriate, to make >> all codepoints mandatory? > > Why do you say that a list would be more appropriate? The doc string > of script-representative-chars says: > > CHARS is a list or a vector of characters. > > So both lists and vectors are possible and supported. The docstring also says this: If it is a list, all characters in the list are necessary for supporting SCRIPT. If it is a vector, one of the characters in the vector is necessary. That led me to think that we'd want a list, but now that I've looked at ftfont.c and font.c more closely, I get the impression that this distinction only applies to the verification step in font_match_p? Hence it would indeed not matter whether we used a vector or a list for the purposes of querying fontconfig. (I hope I'm not misreading the code; apologies if so. I'm still not entirely sure I understand why ftfont_spec_pattern seems to only handle the list case while ftfont_list only handles the vector case, but I'm sure I'll figure it out eventually after some more scowling) Again, thanks for your advice.