On 5/2/15 2:45 PM, "Paul Morris" <p...@paulwmorris.com> wrote:

>Hello dev list,
>
>Recently while working on Jianpu notation (see user list) I needed a
>function to flip a stencil.  LilyPond doesn¹t have one, so I thought it
>would be worth adding the one I wrote (see below).
>
>Any thoughts on this before I submit the code for review?
>
>(The other option would be to just revise the ly:stencil-scale function¹s
>doc string so that it mentions that it can be used to flip a stencil, but
>that this "may result in collisions unless the scaled stencil is
>[manually] realigned".)

I think you should submit this code as a patch to scm/stencil.scm.  Also,
the regtests should be fixed to show the new behavior.

Using a scale of -1 is the appropriate thing to do when you want to have
the *origin* stay in the same location.  Using stencil-flip is the
appropriate thing to do when you want the *bounding box* to stay in the
same location.

Both behaviors could be desired.

Thanks,

Carl


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

Reply via email to