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 21:55:02 +0300 Message-ID: <83edw1q5tl.fsf@gnu.org> References: <83wn9up0es.fsf@gnu.org> <83illeou0j.fsf@gnu.org> <87sfkij6a5.fsf@gmail.com> 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="16656"; mail-complaints-to="usenet@ciao.gmane.io" Cc: lumarzeli30@gmail.com, emacs-devel@gnu.org To: Visuwesh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 23 21:13:02 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 1obo6f-0004DL-CH for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 21:13:01 +0200 Original-Received: from localhost ([::1]:52854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obo6e-0000x2-F3 for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 15:13:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obnpV-0008WT-GT for emacs-devel@gnu.org; Fri, 23 Sep 2022 14:55:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obnpV-0002fa-7w; Fri, 23 Sep 2022 14:55:17 -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=G+N3BhFkQyNEtFZBTJDf+sZCwZ/52LhGHV5Z6+Xs1yU=; b=SfSfq0wsLL5cnpOchZfo D6Qt/g3YzFvODF2HdwKisye/35CuNJg39GHppymoZJ9d+cmBKV6iDwVHo8rfMD6ft0o6WVqmb4h2C lhCOl5w3rhgWolxze0LI4khPF0s0FqKpd5y6QlwQJDVGJXgO6cACC5Ig4X6DXvxmTuNNiOJJDW/m9 BhuXI2FvlQKtrF//dUVCAnn85WafcDn3Hr8XcxtnGJAqBgKdURKhJTJP8r9eXO7yqSCpB9vy9nImK CvwUB8ipUgd+fnr72GPMq6Ktuezp21BeS/Gdv4Cs2QYmhdIE8RQcU9ULfY5qX+ndmaP2CzR47meFD Y68+IoQU30WVjw==; Original-Received: from [87.69.77.57] (port=4799 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 1obnpR-0005rA-Hc; Fri, 23 Sep 2022 14:55:16 -0400 In-Reply-To: <87sfkij6a5.fsf@gmail.com> (message from Visuwesh on Fri, 23 Sep 2022 23:56:58 +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:296080 Archived-At: > From: Visuwesh > Cc: समीर सिंह Sameer Singh > , emacs-devel@gnu.org > Date: Fri, 23 Sep 2022 23:56:58 +0530 > > [வெள்ளி செப்டம்பர் 23, 2022] Eli Zaretskii wrote: > > >> 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?. > > Unless there are performance implications, I don't see why using an > anonymous face won't work i.e., > > (propertize "text" '(face (:stylistic-set ("cv01" ..))) How is this different or better than having a special text property?