lilypond-user
[Top][All Lists]
Advanced

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

Re: TextScript.outside-staff-padding and text's baseline


From: Urs Liska
Subject: Re: TextScript.outside-staff-padding and text's baseline
Date: Sun, 21 Oct 2018 00:00:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi Kieren,


Am 20.10.2018 um 21:22 schrieb Kieren MacMillan:
Hi Urs,

Is there a way to force text elements to a common *baseline* (as long as 
collision avoidance doesn't force them farther away from the staff?
This is a long-standing irritation of mine, with respect to Lily’s text/markup 
handling…

The only hack I’ve found so far is to force a common height, either with a 
strut or a transparent combination which has both [maximum] ascenders and 
[maximum] descenders:

{
  \override TextScript.outside-staff-padding = 2
  g' _\markup \combine \transparent "Tj" "g" ^\markup \combine \transparent "Tj" 
"q"
  g' _\markup \combine \transparent "Tj" "b" ^\markup \combine \transparent "Tj" 
"b"
}

First I found that very nice, but then I realized that the padding isn't against the StaffSymbol but against the next object in general, so I'm afraid the outside-staff-padding doesn't work at all:

\version "2.19.82"

{
 \override TextScript.outside-staff-padding = 2
 \once \stemUp
 c''2 _\markup \combine \transparent "Tj" "g" ^\markup \combine \transparent "Tj" 
"q"
 g' _\p _\markup \combine \transparent "Tj" "b" ^\markup \combine \transparent "Tj" 
"b"
}

The first upper letter is pushed outside by the stem, the second lower letter by the dynamics.

Urs

Hope that helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden





reply via email to

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