all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Protesilaos Stavrou <info@protesilaos.com>
Cc: philipk@posteo.net, emacs-devel@gnu.org
Subject: Re: [ELPA] Add new 'show-font' package?
Date: Fri, 06 Sep 2024 09:12:05 +0300	[thread overview]
Message-ID: <86ttet1fbe.fsf@gnu.org> (raw)
In-Reply-To: <87zfol4a5t.fsf@protesilaos.com> (message from Protesilaos Stavrou on Fri, 06 Sep 2024 08:35:10 +0300)

> From: Protesilaos Stavrou <info@protesilaos.com>
> Cc: emacs-devel@gnu.org
> Date: Fri, 06 Sep 2024 08:35:10 +0300
> 
> > From: Eli Zaretskii <eliz@gnu.org>
> > Date: Thu,  5 Sep 2024 13:24:48 +0300
> >
> >> From: Philip Kaludercic <philipk@posteo.net>
> >> Cc: emacs-devel@gnu.org
> >> Date: Thu, 05 Sep 2024 10:18:50 +0000
> >> 
> >> +  (unless (executable-find "fc-list")	;perhaps add a user option for the command name?
> >>      (error "Cannot find `fc-list' executable; will not find installed fonts"))
> >
> > Do we really need fc-list? can't we use the built-in x-family-fonts
> > instead?
> 
> I thought that function was only for X. It also is defined in a file
> which again has X in its name. If it works everywhere, then I am happy
> to use it.

x-family-fonts is defined in xfaces.c, which is not specific to X.
That function is supported by every font back-end that Emacs can use,
so it is platform-independent.

The only disadvantage in using it is that it will only know about font
families that are installed.  If you intend to support fonts that are
not installed, you will need something else.  But then fc-list doesn't
know about uninstalled fonts, either.  Also, fc-list is unlikely to be
installed on systems that do not run X Window System, anyway.



  reply	other threads:[~2024-09-06  6:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-04  9:21 [ELPA] Add new 'show-font' package? Protesilaos Stavrou
2024-09-05 10:18 ` Philip Kaludercic
2024-09-05 10:24   ` Eli Zaretskii
2024-09-06  5:35     ` Protesilaos Stavrou
2024-09-06  6:12       ` Eli Zaretskii [this message]
2024-09-06  6:23         ` Protesilaos Stavrou
2024-09-06  7:16           ` Eli Zaretskii
2024-09-06  7:23             ` Protesilaos Stavrou
2024-09-06 10:47               ` Eli Zaretskii
2024-09-06 10:59                 ` Protesilaos Stavrou
2024-09-06 11:40                   ` Eli Zaretskii
2024-09-06 13:40                     ` Protesilaos Stavrou
2024-09-06 13:56                       ` Eli Zaretskii
2024-09-06  5:43   ` Protesilaos Stavrou
2024-09-06  6:15     ` Eli Zaretskii
2024-09-06  6:29       ` Protesilaos Stavrou
2024-09-06  7:17         ` Eli Zaretskii
2024-09-06  6:33     ` Philip Kaludercic
2024-09-06  6:45       ` Protesilaos Stavrou
2024-09-06  7:20         ` Eli Zaretskii
2024-09-06  7:31           ` Philip Kaludercic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86ttet1fbe.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=info@protesilaos.com \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.