lilypond-user
[Top][All Lists]
Advanced

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

Re: Check if a font is currently installed


From: Valentin Petzel
Subject: Re: Check if a font is currently installed
Date: Sun, 21 Nov 2021 21:32:15 +0100

Hello Paolo,

After looking into this it seems like this is intended behaviour for font-
config. Basically this does not perform an exact match, but calculates some 
distance and returns the font with best distance. Maybe it would be somehow 
possible to get that distance and decide upon it?

Cheers,
Valentin

Am Sonntag, 21. November 2021, 21:06:15 CET schrieb Paolo Prete:
> Thank you Valentin, a fix for this would be very useful.
> Best,
> Paolo
> 
> On Sun, Nov 21, 2021 at 8:52 PM Valentin Petzel <valentin@petzel.at> wrote:
> > Hello Paolo,
> > 
> > Theoretically it should be enough to check if
> > #(ly:font-config-get-font-file
> > font-name) is false, but at least on my system this returns just some
> > arbitrary but fixed font file if the font is not found. It should
> > definitely
> > not behave this way, gotta look into this.
> > 
> > Cheers,
> > Valentin

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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