> On Jul 16, 2015, at 2:18 PM, Karol Majewski <[email protected]> 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
HTH,
-Paul
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user