Lilypond 2.24.4 on Debian Linux.

The directory 'fonts' contains the file MinionPro-Regular.otf, and 'output' is an empty directory.

With the attached input file, and the command

    lilypond -o output bug2.ly

Lilypond fails to find the Minion Pro font, and the lyrics are set in a sans font instead.

Workaround: specify the font directory as "../fonts", relative to the desired output directory. For safety, specify both "fonts" and "../fonts" as font directories.

This behaviour seems undesirable, as the contents of the score file should not depend on the directories used when processing it.

-- Mike Spivey
\version "2.24.4"
\language "english"

#(ly:font-config-add-directory "fonts/")

\paper {
  #(define fonts
    (make-pango-font-tree "Minion Pro"
                          "Nimbus Sans, Nimbus Sans L"
                          "DejaVu Sans Mono"
                          1.0))
}

\new Staff <<
  \clef "treble" \key g \major
  \relative {
    g'8 a b-- g-- 
  }
  \addlyrics {
    Al -- le -- lu -- ia!
  }
>>

Attachment: bug2.pdf
Description: Adobe PDF document

Reply via email to