lilypond-user
[Top][All Lists]
Advanced

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

Can't find font in LilyJazz when using 2.24's ly:font-config-add-directo


From: Knute Snortum
Subject: Can't find font in LilyJazz when using 2.24's ly:font-config-add-directory
Date: Fri, 18 Aug 2023 13:11:40 -0700

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?

--
Knute Snortum

Attachment: display-fonts-all-of-me.txt
Description: Text document

Attachment: AllOfMe.ly
Description: Text Data

Attachment: jazzchords.ily
Description: Binary data

Attachment: lilyjazz.ily
Description: Binary data

Attachment: jazzextras.ily
Description: Binary data


reply via email to

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