X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Frepeat-sign-layout-size.ly;fp=input%2Fregression%2Frepeat-sign-layout-size.ly;h=4f84c20a0820212fbeafe3528283f828b134e5da;hb=32a34dcef0c0041c6d62677487a380b5c8b85712;hp=0000000000000000000000000000000000000000;hpb=f41973ff763d5972a85995b6d40c864281ec6714;p=lilypond.git diff --git a/input/regression/repeat-sign-layout-size.ly b/input/regression/repeat-sign-layout-size.ly new file mode 100644 index 0000000000..4f84c20a08 --- /dev/null +++ b/input/regression/repeat-sign-layout-size.ly @@ -0,0 +1,43 @@ +\version "2.16.0" +\header { + texidoc = "The two dots of a repeat sign should be symmetric +to the staff centre and avoid staff lines even for exotic staves. +Test layout-set-staff-size." +} + +\score { + << + \context Staff = "s1" \with { + \override StaffSymbol #'staff-space = #0.4 + } { + s1 \bar ":|" + } + + \context Staff = "s2" \with { + \override StaffSymbol #'staff-space = #0.5 + } { + s1 \bar ":|" + } + >> + + \layout { + #(layout-set-staff-size 10) + } +} + +\score +{ + << + \context Staff = "s1" \with { + \override StaffSymbol #'staff-space = #0.7 + } { + s1 \bar ":|" + } + + \context Staff = "s2" \with { + \override StaffSymbol #'staff-space = #0.75 + } { + s1 \bar ":|" + } + >> +}