Kieren MacMillan <kieren_macmil...@sympatico.ca> writes:

> Hi Werner,
>
>> This is the solution I will use, since David's solution doesn't really
>> work for me: As the attached image for this snippet shows,
>> the staff line gets enlarged horizontally to the left.  Using the
>> baloon stuff, the text properly sticks out.
>
> What about
>
>  \new Staff
>  {
>    \tweak stencil
>      #(grob-transformer 'stencil
>        (lambda (grob default)
>          (grob-interpret-markup grob
>           #{ \markup \with-dimensions-from "a" \column {
>                \stencil #default
>                \vspace #-2.5
>                \center-align "This is a long, centered text" } #})))
>    \time 2/4 c'1
>  }
>
> Hope that helps!

Uh, I think the balloon version is a whole lot more appropriate for that
use case and cleaner anyway.  I just couldn't be bothered looking up its
usage.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to