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.help Subject: Re: Visual font looping setup Date: Sat, 21 Nov 2020 09:19:00 +0200 Message-ID: <83h7pjyy6z.fsf@gnu.org> References: <83lfevztlq.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28233"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 21 08:20:10 2020 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 1kgNBq-0007DJ-Ky for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 08:20:10 +0100 Original-Received: from localhost ([::1]:33312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgNBp-0000qR-JE for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 02:20:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgNAw-0000pM-H1 for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 02:19:14 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54355) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgNAu-0003V6-4J for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 02:19:14 -0500 Original-Received: from [176.228.60.248] (port=1808 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kgNAt-0004PF-Ep for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 02:19:11 -0500 In-Reply-To: (message from Jean Louis on Sat, 21 Nov 2020 00:03:18 +0300) 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:125436 Archived-At: > Date: Sat, 21 Nov 2020 00:03:18 +0300 > From: Jean Louis > Cc: help-gnu-emacs@gnu.org > > > Failing that, the font selection dialog popped by S-mouse-1 or > > Options->Set Default Font from the menu bar usually shows a small > > sample of each font as you scroll through their list. > > You say that it shows small sample of each font. On my side for years > it shows just 3 major options Misc, few fonts commonly used on X > before 20 years, then there is Courier option for various sizes, bold > and slant and mix, and there is fontset. More than that never appears > there. > > S-mouse-1 opens up same dialog. I guess the toolkit which you used to build Emacs doesn't have a well-designed font selection dialog. Do these commands invoke mouse-select-font or x-select-font on your system? > Do you mean that there are more fonts on your side displayed under > those options? Yes. If your Emacs was built with GTK, x-select-font should start a GTK font selection dialog showing many fonts. Of course, you can always write a simple command that loops over all the fonts in the list created by this: (x-list-fonts "-*-*-medium-r-normal-*-*-*-*-*-*-iso10646-1" 'default (selected-frame)) and display some sample text using each font. Or just looks at the list returned by the above, and try some of the fonts manually (with set-frame-font or somesuch).