]> git.donarmstrong.com Git - lilypond.git/commit
Add a make-line-stencil function, which correctly sets stencil extents
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 17 Aug 2008 23:45:17 +0000 (01:45 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 19 Aug 2008 17:08:12 +0000 (19:08 +0200)
commit5a5ac06f4f6e8b737a59a25aae0663a32f8215e3
tree7409d0794338b09ad1857bb167615804e9bb33d0
parenta7d9b2d17be6e114dcf47cc8120d54937cd06670
Add a make-line-stencil function, which correctly sets stencil extents

So far, one had to create line stencils manually using
   (ly:make-stencil (list 'draw-line ...) xext yext)
Unfortunately that meant that one had to specify the x- and y- coordinates
twice. This new make-line-stencil function takes the coordinates once,
creates the stencil and properly sets its extent (adding half the line
width to all coordinates of the x- and y-intervals).

Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
scm/define-markup-commands.scm
scm/fret-diagrams.scm
scm/stencil.scm