> Put yourself in the shoes of LilyPond trying to compute the skylines
> of this stencil:
> 
> (ly:make-stencil "" empty-interval '(-0.3 . 0.7))
> 
> According to you, the skyline should be a zero-width spike.  At
> which horizontal coordinate is this spike? Any value would be
> legitimate.

Well, I don't consider this as something stand-alone but as a markup.
A markup has an anchor, i.e., it starts at a point X, doesn't it?  The
strut would thus have the same horizontal coordinate as X.

>>> If \strut needs to have an empty X extent for horizontal spacing
>>> reasons, you will need to use ly:stencil-outline.

Understood now, thanks.  David suggests

```
#(define-markup-command (strut layout props)
   ()
   #:properties ((baseline-skip))
   (make-transparent-box-stencil
                    empty-interval
                    (cons (* -0.3 baseline-skip)
                          (* 0.7 baseline-skip))))
```

and I wonder whether the existing `\strut` command should be changed
to this code.


    Werner

Reply via email to