Thomas Morley <thomasmorle...@gmail.com> writes:

> Hi all,
>
> let's say I've a stencil, which I want to rotate around it's center.
> For the example below I choosed make-circle-stencil, because a circle
> center-rotated _should_ always look equal.
> Though, applying ly:stencil-rotate modifies the dimensions of said
> circle for degrees not equal to (* 90 n).
> (Made visible by boxing it)
>
> Why?

Because it is the rectangular bounding box that is getting rotated?  So
typically the covered area will increase unless you are rotating by
multiples of 90 degrees where the box covers the full bounding box after
rotation again.

> How to prevent?

No way that I know of.

> \markup
>   \override #'(box-padding . 0)
>   \box {
>     \stencil
>     #(make-circle-stencil 0.5 0.1 #f)
>     \stencil
>     #(ly:stencil-rotate (make-circle-stencil 0.5 0.1 #f) 10 0 0)
>   }

-- 
David Kastrup

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

Reply via email to