[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strut problem,Re: strut problem

From: Werner LEMBERG
Subject: Re: strut problem,Re: strut problem
Date: Fri, 18 Nov 2022 22:16:11 +0000 (UTC)

> 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))
                    (cons (* -0.3 baseline-skip)
                          (* 0.7 baseline-skip))))

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]