lilypond-auto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lilypond-auto] Issue 2155 in lilypond: TextScript isn't entirely sc


From: lilypond
Subject: Re: [Lilypond-auto] Issue 2155 in lilypond: TextScript isn't entirely scaled, while using another "staff-size"
Date: Wed, 14 Aug 2013 20:18:57 +0000


Comment #3 on issue 2155 by address@hidden: TextScript isn't entirely scaled, while using another "staff-size"
http://code.google.com/p/lilypond/issues/detail?id=2155

Regarding comment #2

I'd expect that \draw-line is scaled like other parts of a markup with customized Staffsizes.
Though, it isn't:

Example1:

\version "2.17.24"

mrkp =
  \markup {
    \combine
    \vcenter "xxx"
    \with-color #red \draw-line #'(3 . 0)
  }

smallStaff =
\with {
  fontSize = #-10
  \override StaffSymbol #'staff-space = #(magstep -10)
  \override StaffSymbol #'thickness = #(magstep -10)
}

<<
  \new Staff { d'-\mrkp }
  \new Staff \smallStaff { d'-\mrkp }


With the trickery of using grob's font-size to scale \draw-line it works.

Example2:

scaledMarkup =
#(define-event-function (parser location)()
  (define (new-mrkp-stencil ext)
    (lambda (grob)
       (let* ((sz (ly:grob-property grob 'font-size 0.0))
              (mult (magstep sz))
              (new-markup
                (markup #:combine
                            #:vcenter "xxx"
                            #:with-color red
                               #:scale (cons mult mult)
                                 #:draw-line ext)))
       (grob-interpret-markup grob new-markup))))
#{
  -\tweak #'stencil #(new-mrkp-stencil '(3 . 0))-""
#})

<<
  \new Staff { d'\scaledMarkup }
  \new Staff \smallStaff { d'\scaledMarkup }


Hope it's clearer now.

I'd work on it myself, though I've no clue what to do to change/improve the markup-command \draw-line.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings



reply via email to

[Prev in Thread] Current Thread [Next in Thread]