[Top][All Lists]

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

Re: Custom TimeSignature doesn't scale correctly

From: tisimst
Subject: Re: Custom TimeSignature doesn't scale correctly
Date: Thu, 16 Jul 2015 13:29:26 -0700 (MST)

On Thu, Jul 16, 2015 at 2:09 PM, karol [via Lilypond] <[hidden email]> wrote:

Abraham, I'll try to explain why setting baseline-skip to 0 is a bad idea here. Take a look at the attachment. This is what is happening if you set baseline-skip to 0.


In case of some other fonts difference between 'a' and 'b' is more noticeable.

So we need to have baseline skip set to 2 to have perfectly even spacing.

Thanks for the explanation. It still seems like a _very_ small difference to me, but if you can see it, then that's fine. How about this:

  (customTimeSignature grob)
        (ly:grob-property grob 'fraction))
        (car fraction))
        (cdr fraction))
      (stil (grob-interpret-markup grob #{
        \markup {
          \translate #'(0 . 0.03) 
          \override #'(font-name . "Times") 
          \abs-fontsize #15 
          \override #'(baseline-skip . 2) 
          \center-column {
            \line {
              #(number->string num)
            \line {
              #(number->string denom)
      (sz (magstep (ly:grob-property grob 'font-size 0.0))))
    (ly:stencil-scale stil sz sz)))

which gives me (at fontSize = -3, -2, -1, 0, 1, 2, 3):

Inline image 1

Just setting baseline-skip to 0 and this look virtually identical to me, but maybe this works better for you.

- Abraham

View this message in context: Re: Custom TimeSignature doesn't scale correctly
Sent from the User mailing list archive at

reply via email to

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