Adjusting vertical positioning of lyric hyphens: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
For joining syllables, LilyPond doesn’t use the hyphen of the text font but instead draws a simple line with variable length (this limitation is tracked as {{Issue|1255}}). Its standard vertical position | For joining syllables, LilyPond doesn’t use the hyphen of the text font but instead draws a simple line with variable length (this limitation is tracked as {{Issue|1255}}). Its standard vertical position doesn’t always fit the proportions of the text font. When using a font with a large x-height, it may be too low. | ||
You can adjust the vertical positioning of the hyphens manually. To get a good result you may want to insert a “real” hyphen for | You can adjust the vertical positioning of the hyphens manually. To get a good result you may want to insert a “real” hyphen for comparison (like between ‘l-e’ in the snippet). You may also want to adjust the thickness of LilyPond hyphens using the <code>thickness</code> property of the <code>LyricHyphen</code> grob to match the font’s hyphen character. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
| Line 8: | Line 8: | ||
\score { | \score { | ||
<< | << | ||
\ | \new Voice = "Lied" { | ||
\relative | \relative { | ||
\clef G | \clef G | ||
\key c \major | \key c \major | ||
e'2 d c1 | |||
} | } | ||
} | } | ||
\ | \new Lyrics = "Lied" | ||
\lyricsto Lied { | |||
La -- l-e -- lu. | |||
} | } | ||
>> | >> | ||
| Line 27: | Line 26: | ||
\Lyrics | \Lyrics | ||
\override LyricHyphen.Y-offset = #0.16 | \override LyricHyphen.Y-offset = #0.16 | ||
\override LyricHyphen.thickness = #2.1 | |||
} | } | ||
} | } | ||
| Line 34: | Line 34: | ||
#(define fonts | #(define fonts | ||
(make-pango-font-tree | (make-pango-font-tree | ||
"Serif" | |||
"Sans" | |||
"Monospace" | |||
(/ 20 20))) | |||
} | } | ||
</lilypond> | </lilypond> | ||