On 2019-01-21 4:35 pm, Aaron Hill wrote:
%%%%
\version "2.19.82"

#(define-markup-command (faux-raise layout props amount arg) (number? markup?)
  (let* ((sten (interpret-markup layout props arg))
         (xex (ly:stencil-extent sten X))
         (yex (ly:stencil-extent sten Y)))
    (interpret-markup layout props
      (markup #:with-dimensions xex yex (#:raise amount arg)))))

\markup { Some \faux-raise #1 "\faux-raised" "text" }
\markup { Some \raise #1 "\raised" "text" }
\markup { Some \raise #1 "\raised" "text" }
\markup { Some \faux-raise #1 "\faux-raised" "text" }
%%%%

I forgot \with-dimensions-from was a thing:

%%%%
#(define-markup-command (faux-raise layout props amount arg) (number? markup?)
  (interpret-markup layout props
    (markup #:with-dimensions-from arg (#:raise amount arg))))
%%%%

-- Aaron Hill

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

Reply via email to