|
From: | tisimst |
Subject: | Re: Custom TimeSignature doesn't scale correctly |
Date: | Thu, 16 Jul 2015 11:55:49 -0700 (MST) |
> 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
[Prev in Thread] | Current Thread | [Next in Thread] |