[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 20:51:58 +0100 |
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
Am Sonntag, 21. November 2021, 19:12:33 CET schrieb Paolo Prete:
> Sorry, it doesn't help.
> It just shows a long list of the available fonts.
> Not what I was searching for...
> Best,
> P
>
> On Sun, Nov 21, 2021 at 6:37 PM David Wright <lilylis@lionunicorn.co.uk>
>
> wrote:
> > On Sun 21 Nov 2021 at 17:29:37 (+0100), Paolo Prete wrote:
> > > it would be useful to have a functions that checks if a font with a
> > > specific font-name is currently installed, so to have the produced score
> > > without visual errors that are not always easy to detect.
> >
> > Would the list produced by this snippet help? I can't help you
> > parse the output as I'm not a scheme programmer.
> >
> > > I searched a bit in the list of the scheme helper functions, and could
> >
> > find
> >
> > > only:
> > >
> > > ly:font-config-get-font-file font-name
> > >
> > > However, in case the file is not found, it defaults to some font that (I
> > > suppose) is OS dependent, then I don't know how to check if the
> > > searched
> > > font is really installed. Any idea about this?
> >
> > Cheers,
> > David.
signature.asc
Description: This is a digitally signed message part.
- Check if a font is currently installed, Paolo Prete, 2021/11/21
- Re: Check if a font is currently installed, David Wright, 2021/11/21
- Re: Check if a font is currently installed, Paolo Prete, 2021/11/21
- Re: Check if a font is currently installed,
Valentin Petzel <=
- Re: Check if a font is currently installed, Paolo Prete, 2021/11/21
- Re: Check if a font is currently installed, Valentin Petzel, 2021/11/21
- Re: Check if a font is currently installed, Paolo Prete, 2021/11/22
- Re: Check if a font is currently installed, Valentin Petzel, 2021/11/22
- Re: Check if a font is currently installed, Hans Aikema, 2021/11/22
- Re: Check if a font is currently installed, Paolo Prete, 2021/11/22
- Re: Check if a font is currently installed, Valentin Petzel, 2021/11/22