On Thu, Jul 16, 2015 at 2:09 PM, karol [via Lilypond] <
ml-node+s1069038n178719...@n5.nabble.com> 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:

#(define
  (customTimeSignature grob)
  (let*
    ((fraction
        (ly:grob-property grob 'fraction))
      (num
        (car fraction))
      (denom
        (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):

[image: Inline image 1]

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

- Abraham


image.png (45K) 
<http://lilypond.1069038.n5.nabble.com/attachment/178720/0/image.png>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178720.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to