Jump to content

Setting the extent of objects: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
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


Line 19: Line 19:
[[Category:Text]]
[[Category:Text]]
[[Category:Tweaks and overrides]]
[[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 }
}