underline for LyricText

This commit is contained in:
2026-03-09 17:01:21 +01:00
parent 7fc99e8883
commit 7ece3b9c10

View File

@@ -306,3 +306,17 @@ rufWithMarkup =
ruf =
#(define-music-function (text) (string?)
(rufWithMarkup (make-ruf-style-markup text)))
underlineOn =
#(define-music-function () ()
#{
\override LyricText.stencil =
#(lambda (grob)
(grob-interpret-markup grob (make-underline-markup (ly:grob-property grob 'text))))
#})
underlineOff =
#(define-music-function () ()
#{
\revert LyricText.stencil
#})