Thank you - but of course!   Now I feel even more stupid than usual.

cheers,
Alasdair

On Thu, Jul 14, 2022 at 3:51 PM Aaron Hill <[email protected]> wrote:

> On 2022-07-13 10:35 pm, Alasdair McAndrew wrote:
> > Hello,
> >
> > I'm trying to find a suitable system font for use with some tablature
> > I'm
> > typesetting.  The command "lilypond -dshow-available-fonts" does indeed
> > do
> > exactly that, but there are so many fonts on my system that this
> > command is
> > not helpful on its own.  What I'd like is some way of searching the
> > font
> > list.  For example, I'd hope to write that font list to a file, which I
> > could explore at leisure.
> >
> > I'm using Linux, and normally I can redirect the output of a command to
> > a
> > file, such as
> >
> > ls -l > list.txt
> >
> > But this doesn't work with the lilypond font command.  I'm quite
> > mystified
> > that the lilypond somehow ignores shell commands; at least in this
> > instance.
> >
> > This same behaviour means I can't pipe the output of the font command
> > to
> > grep for searching.
> >
> > How can I search the list of available fonts?
>
> The fonts are output via stderr.  You'll need to use 2>&1 to redirect
> the stream.
>
> lilypond -dshow-available-fonts 2>&1 | grep -i 'something'
>
>
> -- Aaron Hill
>


-- 
Alasdair McAndrew (he/him)
mob: 0432 854 858

https://numbersandshapes.net

Reply via email to