emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ELPA] Add new 'show-font' package?


From: Protesilaos Stavrou
Subject: Re: [ELPA] Add new 'show-font' package?
Date: Fri, 06 Sep 2024 10:23:49 +0300

> From: Eli Zaretskii <eliz@gnu.org>
> Date: Fri,  6 Sep 2024 10:16:30 +0300

> [... 11 lines elided]

>> All I need is to figure out how to get/guess the name of a font
>> based on the file name (ideally without depending on an external program
>> that may not be installed on the user's end).
>
> Why do you need that?  IME, users don't care about file names of the
> fonts.

Imagine the user has just downloaded a font in "~/Downloads" and tries
to visit it. The idea is to get the font family out of this file and
check if it exists on the system. If it exists, then we perform the
preview of the font, otherwise we inform the user that the font called
FONT is not installed (and then suggest to install it, but I will do
that later).

-- 
Protesilaos Stavrou
https://protesilaos.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]