]> git.donarmstrong.com Git - lilypond.git/blob - input/new/drawing-boxes-around-grobs.ly
Merge branch 'lilypond/translation' of ssh://trettig@git.sv.gnu.org/srv/git/lilypond...
[lilypond.git] / input / new / drawing-boxes-around-grobs.ly
1 \version "2.11.23"
2 \layout { ragged-right= ##t }
3 \header {
4   lsrtags = "tweaks-and-overrides"
5   texidoc = "
6 The @code{print-function} can be overridden to draw a box around an
7 arbitrary grob.  
8 "
9   doctitle = "Drawing boxes around grobs"
10 }
11
12 \relative c'' {
13   \override TextScript  #'stencil =
14   #(make-stencil-boxer 0.1 0.3 ly:text-interface::print)
15   c'4^"foo"
16
17   \override Stem  #'stencil =
18   #(make-stencil-boxer 0.05 0.25 ly:stem::print)
19   \override Score.RehearsalMark  #'stencil =
20   #(make-stencil-boxer 0.15 0.3 ly:text-interface::print)
21   b8
22   
23   \revert Stem #'stencil
24   c4. c4 \mark "F" c1
25 }