From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: Supporting stylistic sets Date: Fri, 23 Sep 2022 23:56:58 +0530 Message-ID: <87sfkij6a5.fsf@gmail.com> References: <83wn9up0es.fsf@gnu.org> <83illeou0j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18286"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?= , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 23 21:04:54 2022 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 1obnyo-0004eA-6p for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 21:04:54 +0200 Original-Received: from localhost ([::1]:42700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obnyl-0001UD-5J for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 15:04:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obnOO-0004KN-1P for emacs-devel@gnu.org; Fri, 23 Sep 2022 14:27:16 -0400 Original-Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:46687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obnOM-0002yP-Da; Fri, 23 Sep 2022 14:27:15 -0400 Original-Received: by mail-pf1-x442.google.com with SMTP id c198so883784pfc.13; Fri, 23 Sep 2022 11:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=FwfO3939TX8bmZkWtiu4Aie98S2xhmuG5vQw749sPR8=; b=NTqajCG2KtEef9xKJi91HDetzjhBa+0THgDGVADx5zTz+VAdPhjOgR4kWZV6DWan2x R0WFmH8FlDUn7PzbLVSVo0492B0ypBf5/MHjwnwL98EeRjpJCrB+Y8SgVDO6GVV5aagu 15NoqHWcE4xGHHDIfyHndlb8iEBceRa0rNDEUWV6bE7pTRMRyeL/Nxx7td17ca5b2Ici W4/ef6dsoKkujoeyg7uLLX2a2ptkx3wZA0twufzSc3UIb/mbGNvZTrRQNRi9u6ImL3dw BQAX9ONO5UcI9W8pWsZ+Fbt9arRZI3tofZns9iQD9zP7pz36EZYIk5jk3I/g3C3NuhNH RkiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date; bh=FwfO3939TX8bmZkWtiu4Aie98S2xhmuG5vQw749sPR8=; b=YqEHb1dNIbNAbzVDEr1iBlmEPh9NdXmg3xwR1YZ+06XkjcT94KxwlgEdNUMLEHwPiv 7xclhMpYbf44c+mujefD0klp28jCRMI7SkRDjt3z1nYlMAsNtT3u09ivt1gbyL0eXYyK jTplmjuhcFIQK3w7L4O7oPmhad8Hy/fuYsK6l/Luz0upvV9SRw0gheRfXaRIrToR8I0A sZ5ZYsHx0yFCSFwVCcclmu4z4tigDovhHNXmCw4w0zhKUhwKSX1eQL5DuEPjjdnCavRH uUwnbfu1zSJdcH3jDGxf13QbLhS5+O1nH76GRUJqxbhCNIkDKCBAmZeieglGk80q/LaD vAvw== X-Gm-Message-State: ACrzQf2SnajBE87CuZSFQylQv5+ofBJc3y9oES4J3KRMkJtSQF+9WJ9c lt4n86xeR2wa89dGzW3cKqsjOMWVxaM= X-Google-Smtp-Source: AMsMyM5L2V69ABgShfHhQBs3/CAZkdercbWd+kwwWgJUdeOO6nsLQqZqlBpOdN/0R1giGxROCyW35A== X-Received: by 2002:aa7:888f:0:b0:544:7429:b07c with SMTP id z15-20020aa7888f000000b005447429b07cmr10277080pfe.15.1663957631761; Fri, 23 Sep 2022 11:27:11 -0700 (PDT) Original-Received: from localhost ([118.185.152.162]) by smtp.gmail.com with ESMTPSA id a4-20020a170902ecc400b0016dcbdf9492sm6325758plh.92.2022.09.23.11.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Sep 2022 11:27:11 -0700 (PDT) In-Reply-To: <83illeou0j.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Sep 2022 20:55:24 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=visuweshm@gmail.com; helo=mail-pf1-x442.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-Mailman-Approved-At: Fri, 23 Sep 2022 14:55:48 -0400 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" Xref: news.gmane.io gmane.emacs.devel:296078 Archived-At: [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9A=E0=AF=86= =E0=AE=AA=E0=AF=8D=E0=AE=9F=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 23= , 2022] Eli Zaretskii wrote: >> I imagined that it would be something like this: >>=20 >> (set-fontset-font t 'bengali >> (font-spec :family "Tiro Bangla" >> :stylistic-set '("ss03"))) >>=20 >> (set-face-attribute 'default nil >> :font "Fira Code" >> :weight 'regular >> :height 170 >> :stylistic-set '("cv01" "ss05" "ss03")) >>=20 >> Just like how weight, foundry, size etc are set and they seem to be font= properties. > > That means all text that uses the font will use that stylistic-set. > Is that good enough? What if you want to have the same font with and > without a specific stylistic-set in the same document?. Unless there are performance implications, I don't see why using an anonymous face won't work i.e.,=20 (propertize "text" '(face (:stylistic-set ("cv01" ..)))