]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/stencil-scale.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / input / regression / stencil-scale.ly
1 \version "2.14.0"
2
3 \header {
4   texidoc = "Stencils can be scaled using @code{ly:stencil-scale}.
5 Negative values will flip or mirror the stencil without changing its origin; this
6 may result in collisions unless the scaled stencil is realigned (e.g., the time
7 signature in this test)."
8 }
9
10 \relative c' {
11   \override Staff.Clef #'stencil =
12   #(lambda (grob)
13      (ly:stencil-scale (ly:clef::print grob) 1 -1))
14   \override Staff.TimeSignature #'stencil =
15   #(lambda (grob)
16      (ly:stencil-aligned-to
17       (ly:stencil-scale (ly:time-signature::print grob) -2 1)
18       X LEFT))
19   \override MultiMeasureRestText #'stencil =
20   #(lambda (grob)
21      (ly:stencil-scale (ly:text-interface::print grob) 2 1.6))
22   R1\fermataMarkup
23 }