[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Column line spacing changed with 2.18
From: |
Keith OHara |
Subject: |
Re: Column line spacing changed with 2.18 |
Date: |
Thu, 31 Jul 2014 07:25:31 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Javier Ruiz-Alma <javier <at> ruiz-alma.com> writes:
> Need troubleshooting help with a two-line markup block.
>
If you can make a *single* block that has the same height as a
two-line column, then there is no trouble with the gap.
Somebody better at LilyPond' s markup language might be able to do this
more simply, using predefined functions. I could only find this
\version "2.18.2"
#(define-markup-command (barstrut layout props w arg)
(number? markup?)
#:properties ((font-size 0))
"Draw a filled box of width @var{w} scaled by font size,
height matching @var{arg}."
(let* ((t (* (magstep font-size) w))
(m (interpret-markup layout props arg))
(x (cons (- t) t))
(y (ly:stencil-extent m Y) ))
(ly:round-filled-box x y 0)))
#(set-global-staff-size 30)
\markup \abs-fontsize #9 \line {
\center-column { "left 1" "mouses" }
\barstrut #0.2 \center-column { "É" "j" }
\abs-fontsize #9 \column { "line 1" "line 2" }
}