On Thu, Jul 16, 2015 at 12:46 PM, Paul Morris [via Lilypond] <
ml-node+s1069038n178711...@n5.nabble.com> wrote:

> > On Jul 16, 2015, at 2:18 PM, Karol Majewski <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=178711&i=0>> 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: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178712.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