Jump to content

Setting the extent of objects: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
The object may be extended to larger sized by overriding their properties. The lyrics in this example have an extent of <code>(-10,10)</code>, which is why they are spaced so widely.
The object may be extended to larger sized by overriding their properties. The lyrics in this example have an extent of <code>(-10,10)</code>, which is why they are spaced so widely.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=128
%% http://lsr.di.unimi.it/LSR/Item?id=128



Revision as of 18:52, 16 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 }
}