]> git.donarmstrong.com Git - lilypond.git/blob - input/test/boxed-stencil.ly
*** empty log message ***
[lilypond.git] / input / test / boxed-stencil.ly
1
2 \version "2.6.0"
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 \layout{raggedright = ##t}
11 \relative c''  {
12
13   \override TextScript  #'print-function =
14   #(make-stencil-boxer 0.1 0.3 Text_interface::print)
15
16   c'4^"foo"
17
18   \override Stem  #'print-function =
19   #(make-stencil-boxer 0.05 0.25 Stem::print)
20
21   \override Score.RehearsalMark  #'print-function =
22   #(make-stencil-boxer 0.15 0.3 Text_interface::print)
23   b8
24   \revert Stem #'print-function
25
26   c4. c4 \mark "F" c1 
27 }
28