From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Protesilaos Stavrou Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Add new 'show-font' package? Date: Fri, 06 Sep 2024 09:29:57 +0300 Message-ID: <871q1xguqi.fsf@protesilaos.com> References: <87msknu635.fsf@protesilaos.com> <87jzfqjtdh.fsf@posteo.net> <87wmjp49si.fsf@protesilaos.com> <86seud1f6e.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="24592"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 06 08:30:27 2024 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 1smSUF-0006E0-0N for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Sep 2024 08:30:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smSTz-0005xN-QK; Fri, 06 Sep 2024 02:30:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smSTt-0005pU-7D for emacs-devel@gnu.org; Fri, 06 Sep 2024 02:30:07 -0400 Original-Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smSTr-0000In-2W; Fri, 06 Sep 2024 02:30:04 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 24D4120009; Fri, 6 Sep 2024 06:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protesilaos.com; s=gm1; t=1725604199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=C6izJJtks3J81aRGJ1V9Ks0879JOjgEcP98JZVfzX48=; b=PyKRLntmcxOwHtiL20H2n5HQEfGJJnt1IZn30jOADVxOeRIXFQVpQKzpcmsrqN31lkwv3Q qjSzVidQaHFBmr33U89d4hx76u1GlHWrVuL/PTQ9ISzsqwzIrRhX4JRyXYycVWYV9LmjoW /cJu0Anf31PIPRlCJtX1yZZAe1UvpDeDwOnQ3bW5MRZf5BmRzrkej2Umr7y5/aTTDl35nq MozZvuYJKhtEkc17qbQYw5rqLjBtrLVqA0eae6nklhRkJGKQntJi7n0deiYvkXCkEhsgNr 2K8zZQiTyzQVPeEIUU2RgYv9x/Oe+GQlAeq5DbCtRdcxb0UuIqCTgq/ZKaCsTg== In-Reply-To: <86seud1f6e.fsf@gnu.org> X-GND-Sasl: info@protesilaos.com Received-SPF: pass client-ip=2001:4b98:dc4:8::227; envelope-from=info@protesilaos.com; helo=relay7-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323447 Archived-At: > From: Eli Zaretskii > Date: Fri, 6 Sep 2024 09:15:05 +0300 > >> From: Protesilaos Stavrou >> Cc: emacs-devel@gnu.org >> Date: Fri, 06 Sep 2024 08:43:09 +0300 >> >> > Some general comments: It would be nice to have a command to select a >> > font. >> >> You mean to select a font to preview? This can be done, for sure, though >> I will need to decouple the preview/presentation from the file-visiting >> part. In other words, the user selects a font and then we do >> 'set-face-attribute' of its family across the buffer that we generate. >> This way, we do not need to know where the font is installed and to >> visit that file (though that is fine as well). > > Did you plan on including support for showing non-ASCII fonts? Eventually yes. Though I need to consolidate the core functionality. > That is, fonts whose sole purpose is to display non-ASCII characters > of some script(s)? Because if you did (and I think it's important to > Emacs users), then it would require different techniques, probably > working with fontsets instead of set-face-attribute, because the > latter only allows you to set the font for ASCII characters. You mean to use 'set-fontset-font'? I will need to read more about the technicalities. -- Protesilaos Stavrou https://protesilaos.com