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 <[email protected]> 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