lilypond-user
[Top][All Lists]
Advanced

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

Re: Line spacing (leading) of verses in a hymn


From: Aaron Hill
Subject: Re: Line spacing (leading) of verses in a hymn
Date: Fri, 27 Nov 2020 14:19:57 -0800
User-agent: Roundcube Webmail/1.4.9

On 2020-11-27 1:32 pm, Matthew Fong wrote:
After some searching on the Internet, and looking at the LyricsText
engraver, I was not able to find
anything; VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding
definitely was not it.

VerticalAxisGroup definitely is it. You are just using the wrong spacing parameter. Lyrics are a "nonstaff" item, so you need to adjust nonstaff-nonstaff-spacing. Also, you do not want padding, as that is the distance between ink. You need basic-distance, which for Lyrics is measured from baseline to baseline.

%%%%
\version "2.20.0"

\score {
  <<
    \new Staff \new Voice = melody { b'8 8 g'4 a'2 }
    \new Lyrics \lyricsto melody { Lo -- rem ip -- sum }
    \new Lyrics \lyricsto melody { Lo -- rem ip -- sum }
  >>
  \layout {
    \context {
      \Lyrics
      \override LyricText.font-size =
        % Default font-size is 11pt.  Scale to 10pt.
        #(magnification->font-size 10/11)
      \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
        % Default staff space is 5pt.  Scale to 12pt.
        #'((basic-distance . 12/5) (minimum-distance . 0)
           (padding . 0) (stretchability . 0))
    }
  }
}
%%%%


-- Aaron Hill



reply via email to

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