I'm trying to use the LilyPond 2.24 version ly:font-config-add-directory with LilyJazz (
https://github.com/OpenLilyPondFonts/lilyjazz). My procedure:
1) Download a fresh LillyJazz.
2) Convert to 2.24 (AllOfMe.ly, jazzchords.ily, lilyjazz.ily, jazzextras.ily)
3) Add the ly:font-config-add-directory function to AllOfMe.ly:
\version "2.24.0"
#(set-global-staff-size 18)
#(ly:font-config-add-directory "/home/knute/lilypond/lilyjazz/otf/")
#(ly:font-config-display-fonts)
\include "/home/knute/lilypond/lilyjazz/stylesheet/jazzchords.ily"
\include "/home/knute/lilypond/lilyjazz/stylesheet/lilyjazz.ily"
\include "/home/knute/lilypond/lilyjazz/stylesheet/jazzextras.ily"
4) Make sure lilyjazz.ily uses the correct font name:
\version "2.24.0"
\paper {
#(define fonts
(set-global-fonts
#:music "LilyJAZZ"
#:brace "LilyJAZZ"
#:roman "lilyjazz-text"
#:sans "lilyjazz-chord"
#:factor (/ staff-height pt 20)
))
}
But when I run AllOfMe.ly, I get:
fatal error: cannot find font: `LilyJAZZ-11'
Looking through in the displayed fonts I see:
family LilyJAZZ-11
LilyJAZZ\-11:style=11
Can anyone help me?