Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-12 Thread Torsten Hämmerle
David Kastrup wrote >> And, additionally, it is perfectly common for a (true) slanted/italic >> character to protrude out of its box. > > So? Ahm, yes, of course. Otherwise, you'd never get a decent letter-spacing without thousands of kerning exceptions. As a last attempt, this is an example

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-12 Thread David Kastrup
Torsten Hämmerle writes: > David Kastrup wrote >> Torsten Hämmerle > >> torsten.haemmerle@ > >> writes: >> [...] >>> Yes, I know, but this code was meant for text in the first place and it's >>> quite common for slanted characters to stick out of their bounding boxes

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-12 Thread Torsten Hämmerle
David Kastrup wrote > Torsten Hämmerle > torsten.haemmerle@ > writes: > [...] >> Yes, I know, but this code was meant for text in the first place and it's >> quite common for slanted characters to stick out of their bounding boxes >> to >> the left to the right. Unfortunately, there are no

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread Andrew Bernard
Hi Torsten, Thanks for the confirmation. That obviously explains the observed behaviour very simply. Not intuitive to me. I would have thought the stencil was rotated in this case about its axis of symmetry. But I guess lily[ond does not really know the item, just a stencil, is a 'circle' with

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread David Kastrup
Torsten Hämmerle writes: > Hi Harm, > > Thanks for the background information, that'd be a valuable improvement. > > > Thomas Morley-2 wrote >> Using your code with the following example: >> >> \markup >> \override #'(box-padding . 0) >> \box >> \override

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread Torsten Hämmerle
Hi Harm, Thanks for the background information, that'd be a valuable improvement. Thomas Morley-2 wrote > Using your code with the following example: > > \markup > \override #'(box-padding . 0) > \box > \override #'(slant-angle . 40) > \slanted > \musicglyph #"clefs.G" > > results

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread Thomas Morley
2018-03-11 15:27 GMT+01:00 Torsten Hämmerle : > Hi Harm, > > David is right - it's the bounding box being rotated. As bounding boxes can > only have heights and widths in vertical and horizontal direction (there > isn't even such a thing as an italic slant in LilyPond),

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread Torsten Hämmerle
Hi Andrew, The bounding box of a circle actually is a square. But, after rotation, the resulting markup/stencil will have a new bounding box (with vertical height and horizontal width) large enough to contain the original bounding box (all objects are considered as boxes, no matter what their

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread Andrew Bernard
Hi Torsten, I think Harm and I would assume the bounding box for a circle is a square, which is the root of the confusion. Why is it a rectangle for a circle? Andrew ___ lilypond-user mailing list lilypond-user@gnu.org

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread Torsten Hämmerle
Hi Harm, David is right - it's the bounding box being rotated. As bounding boxes can only have heights and widths in vertical and horizontal direction (there isn't even such a thing as an italic slant in LilyPond), the resulting new bounding box's height and width increases. I usually solve this

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread David Kastrup
Thomas Morley 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

Re: How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread Andrew Bernard
Hi Harm, It's interesting to observe how the bounding box increases in size as you increase the angle and then decreases again as you go to 90 degrees. Clearly lilypond does not display the mathematical nicety of Postscript. As to 'why?' - isn't this a bug or defect? Andrew

How to prevent ly:stencil-rotate to modify dimensions

2018-03-11 Thread Thomas Morley
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