#74 Bad PDF preview 2.12.932

open
nobody
None
5
2012-03-13
2012-03-13
Nick Payne
No

If I run the attached code, the Lilypondtool PDF preview shows the modified LV tie as being much heavier than the preceding ties. Viewing the PDF in Adobe Reader, there is no difference in weight.

\version "2.15.33"

#(define adding 2.5)

#(define (enlarged-extent-laissez-vibrer::print grob)
(let* ((ssymb (ly:grob-object grob 'staff-symbol))
(staff-space (ly:grob-property ssymb 'staff-space))
(adding-factor (if (null? staff-space)
1
(expt staff-space 2)))
(stil (laissez-vibrer::print grob))
(stil-ext (ly:stencil-extent stil X))
(stil-length (interval-length stil-ext))
(new-stil-length (+ stil-length (* adding-factor adding)))
(scale-factor (/ new-stil-length stil-length))
(new-stil (ly:stencil-scale stil scale-factor 1))
(new-stil-ext (ly:stencil-extent new-stil X))
(x-corr (- (car stil-ext) (car new-stil-ext)))
)
(ly:stencil-translate-axis
new-stil
x-corr
X)))

#(assoc-set! (assoc-ref all-grob-descriptions 'LaissezVibrerTie)
'stencil enlarged-extent-laissez-vibrer::print)

\relative c' {
d8( e) ~ e4 ~ e2\laissezVibrer
}

Discussion

  • Nick Payne
    Nick Payne
    2012-03-13

     
    Attachments