I'm writing a function to make horizontal slashes through note stems.

 

The function make-line-stencil uses round end caps, but I prefer square or
butt style. I have asked this question before on the list, but the pointers
to possible answers referred to code for making markups, which is good,
whereas I want to set the end cap style for a path stencil.

 

Here's a fragment of the code in question (not meant to be a MWE, just to
give the programming context):

 

          (if is-rest?

              empty-stencil

              (ly:stencil-add

               stil

               (make-path-stencil

                (list

                 'moveto start-x start-y

                 'lineto end-x end-y)

                thickness 1 1 #t)

               ))

 

Is it possible to inject calls here to set the postscript line cap style?

 

Andrew

 

 

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to