Setting the extent of objects

Revision as of 18:52, 16 November 2025 by Jean Abou Samra (talk | contribs) (Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series)

The object may be extended to larger sized by overriding their properties. The lyrics in this example have an extent of (-10,10), which is why they are spaced so widely.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=128

\score {
  \context Lyrics \lyricmode {
    foo --
    
    \override LyricText.X-extent = #'(-10.0 . 10.0)
    bar baz
  }
  \layout { raggedright = ##t }
}