]> git.donarmstrong.com Git - lilypond.git/blob - input/test/preset-extent.ly
* lily/new-lyric-combine-music-iterator.cc (find_voice): make sure
[lilypond.git] / input / test / preset-extent.ly
1 \version "2.1.19"
2 \header { texidoc = "
3
4 @cindex Preset Extent
5
6
7 Grob extents may be hard coded using grob properties.  This
8 requires Grob::preset_extent () function.
9
10 The lyrics in this example have extent (-10,10) which is why they are
11 spaced so widely.
12
13 "
14
15 }
16
17 \score {
18     \context LyricsVoice \lyrics {
19         foo --
20         \property LyricsVoice . LyricText \set #'X-extent-callback = #Grob::preset_extent
21         \property LyricsVoice . LyricText \set #'X-extent = #'(-10.0 . 10.0)
22  bar baz
23         }
24     \paper { raggedright = ##t}
25 }
26     
27