[Top][All Lists]

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

Re: Check if a font is currently installed

From: Paolo Prete
Subject: Re: Check if a font is currently installed
Date: Tue, 23 Nov 2021 00:15:37 +0100

Hello Valentin,

From what I understand, your procedure relies on the convention that the name of the font file has to be very similar to the descriptive name of the font; unfortunately, this adds unsafety to the procedure I wrote before (which is already unsafe), even if it shortens that procedure a bit.
I think that the only way to have a reliable check is to parse the configured name.
An additional C++ helper function, wrapped by Scheme, is highly useful IMHO (and maybe it should require few lines of additional code), but I wonder as well if a solution can be found for the last stable versions of LilyPond too. I have to meditate about it...


On Mon, Nov 22, 2021 at 11:31 PM Valentin Petzel <> wrote:
Hello Paolo,

This behaviour actually comes from font-config and not from Lilypond. It is
somewhat sensible, since we want to be able to specify a font intuitively and
not by some set identifier.

One hacky way to get what you want if you are checking for very specific fonts
could be this, which would be checking the font file for some string we’d
expect to find in it.


reply via email to

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