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]
> <http:///user/SendEmail.jtp?type=node&node=178716&i=0>> 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
>
>
> #(define
> (customTimeSignature grob)
> (let*
> ((fraction (ly:grob-property grob 'fraction))
> (num (car fraction))
> (denom (cdr fraction))
> (sz (ly:grob-property grob 'font-size 0.0))
> (mult (magstep sz)))
> (ly:stencil-scale
> (grob-interpret-markup grob #{
> \markup {
> \translate #'(0 . 0.03)
> % \override #'(font-name . "Times")
> \fontsize #2.5
> \override #'(baseline-skip . 2)
> \center-column {
> \line {
> #(number->string num)
> }
> \line {
> #(number->string denom)
> }
> }
> }
> #})
> mult mult)
> ))
>
Karol,
Here's what I get with your original code and doing nothing more than
setting baseline-skip to 0 (shown with staves at fontSize = -3, -2, -1, and
default, respectively):
[image: Inline image 1]
That looks like it's vertically aligned nicely to me, but if this isn't
what you're after, please help us understand what you see as the ideal
scenario. Thanks!
- Abraham
image.png (50K)
<http://lilypond.1069038.n5.nabble.com/attachment/178717/0/image.png>
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178717.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