[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add text to score without affecting spacing
From: |
Jean Abou Samra |
Subject: |
Re: Add text to score without affecting spacing |
Date: |
Thu, 17 Feb 2022 22:25:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
Le 10/02/2022 à 01:08, Kieren MacMillan a écrit :
\markup \with-dimensions-from \null "foobar"
By the way: pedantically, I would recommend
\markup \with-dimensions #empty-interval #empty-interval "foobar"
or
\markup \with-dimensions-from \stencil #empty-stencil "foobar"
or
\markup \with-outline #empty-stencil "foobar"
over
\markup \with-dimensions-from \null "foobar"
Because the dimensions of \null can still matter in some cases.
Here's one that comes to mind:
\version "2.22.1"
\markup \column {
a b c
\with-dimensions-from \null d
e f g
}
\markup \vspace #2
\markup \column {
a b c
\with-dimensions #empty-interval #empty-interval d
e f g
}
Basically, \null leads to point-stencil, which has
the extent '(0 . 0) on both axes -- a single-point
interval. That's small, but not totally empty.
empty-interval is '(+inf.0 . -inf.0) which is truly
empty, and this is the extent of empty-stencil on
both axes.
Best,
Jean