lilypond-user
[Top][All Lists]
Advanced

[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 11:55:49 -0700 (MST)



On Thu, Jul 16, 2015 at 12:46 PM, Paul Morris [via Lilypond] <[hidden email]> wrote:
> On Jul 16, 2015, at 2:18 PM, Karol Majewski <[hidden email]> wrote:
>
> I use the following code for changing TimeSignature font. But when it comes to changeing staff size via 'magstep', the TimeSignature doesn't scale correctly. It seems that baseline-skip remains the same. How can I fix this?

Hi, when overriding a grob’s stencil, you have to scale the new stencil by the current font-size.  Something like this:

#(lambda (grob)
    (let* ((sz (ly:grob-property grob 'font-size 0.0))
           (mult (magstep sz)))
        (set! (ly:grob-property grob 'stencil)
          (ly:stencil-scale
            myCustomStencil
            mult mult))))

…taken from this snippet:
http://lsr.di.unimi.it/LSR/Item?id=623

Just setting #'(baseline-skip . 0) works just fine for me at any font size.

- Abraham 


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

reply via email to

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