Jump to content

Setting the extent of objects: Difference between revisions

From LilyPond wiki
No edit summary
m New category
 
Line 18: Line 18:
[[Category:Spacing]]
[[Category:Spacing]]
[[Category:Text]]
[[Category:Text]]
[[Category:Tweaks and overrides]][[Category:Snippet]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:27, 21 November 2025

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 }
}