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: Supporting stylistic sets Date: Fri, 23 Sep 2022 20:55:24 +0300 Message-ID: <83illeou0j.fsf@gnu.org> References: <83wn9up0es.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="780"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 23 20:13:23 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 1obnAw-00005v-RP for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 20:13:23 +0200 Original-Received: from localhost ([::1]:57878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obnAv-0003Le-DV for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 14:13:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obmth-0002Az-78 for emacs-devel@gnu.org; Fri, 23 Sep 2022 13:55:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obmtg-0003Ao-VD; Fri, 23 Sep 2022 13:55:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=HBbxY8HBhcP4EvFpr5ytj8+L05CuaGoAdyyDmtkKbxU=; b=gY6qDnpArc9/P2Amgq7Z /kGCf/S4f2EWV23JRMayaNTq5wAW/qlrqRgRgv+JgkLX/ljvtU4psI7tMUqD0m40DAIPL112P6KMf lE2vy52JtZNVLYYxnLdm+KiAlD+xpQlSFh2PmtlBkwDxA6ivaWZzXYVBgaSIxaId0N6amZmXkpKo0 Lqt6e2pXklPHObuwdbW0U/utP55MPw4r7va1YcssjSXGpbomN98v6Ro7tnzpS41DiwXG+/YGsVb0H d49Jrcp8gVocf27jUP1fGSIBQw3Gi3JaNJW6DhaIgQcQf+/t8hE7LaBEU84ZuSvo+keKgs2w9bwaH XGvknCPl86tQBA==; Original-Received: from [87.69.77.57] (port=1151 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 1obmtf-0003Wn-Cf; Fri, 23 Sep 2022 13:55:31 -0400 In-Reply-To: (message from =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuQ==?= Sameer Singh on Fri, 23 Sep 2022 22:57:41 +0530) 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:296070 Archived-At: > From: समीर सिंह Sameer Singh > Date: Fri, 23 Sep 2022 22:57:41 +0530 > Cc: emacs-devel@gnu.org > > How did you envision this font property to be used in Emacs? > > The etc/TODO item for that suggests to implement this as a text > property instead. That is, of course, not carved in stone, but I > think we should in any case decide on how this will be used from Lisp > before we talk about how to expose it to Lisp. > > I imagined that it would be something like this: > > (set-fontset-font t 'bengali > (font-spec :family "Tiro Bangla" > :stylistic-set '("ss03"))) > > (set-face-attribute 'default nil > :font "Fira Code" > :weight 'regular > :height 170 > :stylistic-set '("cv01" "ss05" "ss03")) > > 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?. And if the font is not the default face's font, it means you need to setup a special face for using it anyway. So I think a font attribute is not flexible enough for Emacs. But I'm interested in what others think.