[Top][All Lists]

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

Re: odd text position?

From: Mats Bengtsson
Subject: Re: odd text position?
Date: Thu, 14 Jan 2010 17:21:25 +0100
User-agent: Thunderbird (X11/20070716)

James Lowe wrote:

From what I can see and probably what others will tell you the spacing is equal 
if you take the bottom of the stave to the top of the character. It is just 
that with 'one' and 'two' for example the height between the bottom stave line 
and the top of the 'o' being the same as the top of the 't' makes the word 
itself appear out of line.

So you are not doing anything wrong as such, it is just that the engraving is 
not using the 'base line' of the letters as the lining up point. For example 
change 'and' to 'one' and you will see it apparently line up with the first 
'one', it is the letter 'd' of 'and' that is pushing this word down and making 
it look out of line.

There is already some discussion on the whys and wherefores of this.

Not that it helps you as such, but this is expected behaviour as far as I can 

I think if you use the appropriate #'staff-padding = #X where 'X' is a minus 
number (-1, -2.4 etc)

that this will help.
No, it doesn't help! One workaround is described in, but it - fails to show what it's supposed to show since you need an additional \textLenghtOn in version 2.12 and later
- affects the horizontal spacing

The following modified version works better:

\new Staff {
 \override TextScript #'staff-padding = #4
 \override TextScript #'self-alignment-X = #center
 \time 2/4
 c'4_\markup { \combine \transparent "f" "WRONG" }
 c'4_\markup { "case" }
 c'4_\markup {  \combine \transparent "f" "RIGHT" }
 c'4_\markup {  \combine \transparent "f" "case" }

(I will send an update to LSR).

The discussion you cited above does indeed provide the solution, but to a slightly different problem, namely the vertical alignment of lyric lines, not of text scripts. Also, that solution only applies to the latest 2.13 version, not to 2.12.


-----Original Message-----
From: address@hidden on behalf of Gerard McConnell
Sent: Thu 1/14/2010 11:12
To: address@hidden
Subject: odd text position?
As you can see from the following code snippet, the
three words don't seem to go on the same baseline under the notes.  Could you 
please tell me what I've done wrong?
Thanks for any help,

\version "2.12.2"
\layout {
    ragged-right = ##f
\score {
  \set Staff.instrumentName = "1"
  \clef bass
  \time 2/4
  \relative c {
   c8 -\tweak #'font-size #-3 _one
   c -\tweak #'font-size #-3 _and
   c4 -\tweak #'font-size #-3 _two
   d8  d  d4  e8 e e4   c2 \bar "|."

lilypond-user mailing list

        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden

reply via email to

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