Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
Yes, this is what I'm trying right now :) Probably I'll stick to that, as it's the most natural way of changing the font.   Thanks.   ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 2:40 PM, karol [via Lilypond] < ml-node+s1069038n178721...@n5.nabble.com> wrote: > Yes, Abraham, I've tried this. But the drawback of this solution is thet > it doesn't scale to bigger staff size. > > > > Try: #(set-global-staff-size 26) and you'll get what I mean. > I see

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
Yes, Abraham, I've tried this. But the drawback of this solution is thet it doesn't scale to bigger staff size.   Try: #(set-global-staff-size 26) and you'll get what I mean.     -- Karol ___ lilypond-user mailing list lilypond-user@gnu.org https://li

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 2:09 PM, karol [via Lilypond] < ml-node+s1069038n178719...@n5.nabble.com> wrote: > Abraham, I'll try to explain why setting baseline-skip to 0 is a bad idea > here. Take a look at the attachment. This is what is happening if you set > baseline-skip to 0. > > > > In case of

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
Abraham, I'll try to explain why setting baseline-skip to 0 is a bad idea here. Take a look at the attachment. This is what is happening if you set baseline-skip to 0.   In case of some other fonts difference between 'a' and 'b' is more noticeable. So we need to have baseline skip set to 2 to have

Odp: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
OK, so with abs-fontsize it scales properly, but if I set global staff size _higher_ than default (20) then it doesn't scale. % BEGIN %% #(define (customTimeSignature grob) (let* ((sz (ly:grob-property grob 'font-size 0.0)) (mult (magstep sz)) (fraction

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 1:34 PM, Paul Morris [via Lilypond] < ml-node+s1069038n17871...@n5.nabble.com> wrote: > > On Jul 16, 2015, at 3:16 PM, Karol Majewski <[hidden email] > > wrote: > > > > Paul, I,ve came up with this, but it doesn't help.

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
> On Jul 16, 2015, at 3:16 PM, Karol Majewski wrote: > > Paul, I,ve came up with this, but it doesn't help. Is setting baseline-skip > to 0 only way? There might be another way, but if so I’m out of ideas. The following takes the ly:stencil-scale approach, and it doesn’t help here. -Paul #

Odp: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
I'd like to avoid setting baseline-skip to 0, as it results in specing issues between num and denom (denom is bit misaligned vertically). ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
Paul, I,ve came up with this, but it doesn't help. Is setting baseline-skip to 0 only way? BEGIN #(define (customTimeSignature grob) (let* ((sz (ly:grob-property grob 'font-size 0.0)) (mult (magstep sz)) (fraction (ly:grob-property grob 'fraction))

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
> On Jul 16, 2015, at 2:45 PM, Paul Morris wrote: > > Hi, when overriding a grob’s stencil, you have to scale the new stencil by > the current font-size. Hmmm, on second thought, it looks like grob-interpret-markup already takes care of scaling the new stencil to the current font size. An

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
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] > > wrote: > > > > I use the following code for changing TimeSignatu

Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
> On Jul 16, 2015, at 2:18 PM, Karol Majewski 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

Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
Hi, 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? -- Karol %% BEGIN \version "2.19.22" #(define (