]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/text/how-to-bottom-align-texts-with-different-vertical-extents.ly
541a5914f646ec0210806ecebd1653b4563a91ef
[lilypond.git] / input / lsr / text / how-to-bottom-align-texts-with-different-vertical-extents.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.23"
3
4 \header { texidoc = "
5 Some letters imply smaller vertical extents than the others; if you
6 have, below your staff, two markups with different vertical extents
7 (e.g. one text with letters \"t,h,l and/or UPPER CASE\" and one text
8 with \"a, c, e, n or m\"), LilyPond will align them to the top by
9 default, thus making it look a bit messy. Therefore, you need to add
10 invisible ascender letters using the \transparent command to make it
11 right.
12 " }
13
14 \new Staff {
15   \override TextScript #'staff-padding = #4
16   \override TextScript #'self-alignment-X = #center
17   \time 2/4
18   c'4_\markup { \transparent "A" "WRONG" \transparent "A" }
19   c'4_\markup { "case" }
20   c'4_\markup { \transparent "A" "RIGHT" \transparent "A" }
21   c'4_\markup { \transparent "A" "case" \transparent "A" }
22 }