[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom TimeSignature doesn't scale correctly
From: |
Paul Morris |
Subject: |
Re: Custom TimeSignature doesn't scale correctly |
Date: |
Thu, 16 Jul 2015 14:45:50 -0400 |
> On Jul 16, 2015, at 2:18 PM, Karol Majewski <address@hidden> 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
- Custom TimeSignature doesn't scale correctly, Karol Majewski, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly,
Paul Morris <=
- Re: Custom TimeSignature doesn't scale correctly, tisimst, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, Paul Morris, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, Karol Majewski, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, Paul Morris, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, tisimst, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, Karol Majewski, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, tisimst, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, Karol Majewski, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, tisimst, 2015/07/16
- Re: Custom TimeSignature doesn't scale correctly, Karol Majewski, 2015/07/16