lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Vertical alignment of text and path in markup


From: Andrew Bernard
Subject: Vertical alignment of text and path in markup
Date: Sun, 17 Feb 2019 16:09:54 +1100

What's the way to align the brackets here rendered as markup paths with the centre of the associated text, without hardcoding numbers. Is there a self-alignment-y property or similar?

I may change the size of the font, and the length and shape of the brackets, so I am after something generic.

Andrew

%===
\version "2.19.82"

leftBracketPath =
  #'((moveto 0 -1)
     (lineto 0 0)
     (lineto 2 0)
     )
 
rightBracketPath =
  #'((lineto 2 0)
     (lineto 2 -1)
     )

\markup {
  \path #0.25 #leftBracketPath "x3"
}

\markup {
  "x3"  \path #0.25 #rightBracketPath
}

%===


reply via email to

[Prev in Thread] Current Thread [Next in Thread]