]> git.donarmstrong.com Git - lilypond.git/blob - input/test/boxed-molecule.ly
651653de4473af45fd24050a0dd1afd2ed7489a5
[lilypond.git] / input / test / boxed-molecule.ly
1
2 \version "2.1.26"
3 \header {
4 texidoc = "@cindex Boxed Stencil
5
6 The @code{print-function} can be overridden to draw a box around an arbitrary 
7 grob. " }
8
9
10  \score { \notes \relative c''  {
11
12  \override TextScript  #'print-function =
13    #(make-stencil-boxer 0.1 0.3 0.2 Text_item::print)
14
15    c'4^"foo"
16
17 \override Stem  #'print-function =
18    #(make-stencil-boxer 0.05 0.25 0.25 Stem::print)
19
20 \override Score.RehearsalMark  #'print-function =
21    #(make-stencil-boxer 0.15 0.3 0.3 Text_item::print)
22       c8
23 \revert Stem #'print-function
24
25       c4. c4 \mark "F" c1 
26    }
27 \paper{raggedright = ##t}
28 }
29