Comment #104 on issue 2658 by [email protected]: wrong stem rendering (inconsistent thickness)
http://code.google.com/p/lilypond/issues/detail?id=2658

What about actually changing the stems from rounded rectangles to lines?

Janek, you can easily try that, and didn't we try that a few months ago?

I asked someone with the affected PDF previewer to try replacing round-filled-box in output-ps.scm with something that draws a single line for boxes where the lines along the sides overlap. You don't need to recompile to try this. Maybe I should have put in a fudge factor, since stems are near-exactly two linewidths thick, by default.

(define (round-filled-box left right bottom top blotdiam)
  (let* ((halfblot (/ blotdiam 2))
         (y (- halfblot bottom))
         (height (- top (+ halfblot y)))
         ;; If the lines along the sides of the box (nearly) overlap
         ;;  then use one line of the width of the box
         (linewidth (if (>= (* 2.2 blotdiam) ;; fudge 2 to 2.2
                            (+ left right))
                      (+ left right)
                      blotdiam))
         (halfwidth (/ linewidth 2))
         (x (- halfwidth left))
         (width (- right (+ halfwidth x))))
    (ly:format  "~4l draw_round_box"
                (list width height x y linewidth))))


--
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