Lyrics alignment

Horizontal alignment for lyrics can be set by overriding the self-alignment-X property of the LyricText object. Value  -1 means left-aligned, 0 centered, and 1 right-aligned. Alternatively, you can use the Scheme values LEFT, CENTER, and RIGHT instead of numbers. Other numeric values are possible, too – don’t forget to add the ‘#’ Scheme prefix for negative numbers!

\layout {
  ragged-right = ##f
}

\relative c'' {
  c1 c c c
}

\addlyrics {
  \once \override LyricText.self-alignment-X = #LEFT
  "left-aligned"
  \once \override LyricText.self-alignment-X = #CENTER
  "centered"
  \once \override LyricText.self-alignment-X = 1
  "right-aligned"
  \once \override LyricText.self-alignment-X = #-1.5
  "very right"
}
[image of music]

LilyPond snippets v2.25.32 (development-branch).