Yes Jean, this  is exactly the type of example I was looking for. Thank you!
It should be added to:
https://lilypond.org/doc/v2.20/Documentation/notation/other#index-_005cwith_002ddimensions
and to:
https://lilypond.org/doc/v2.20/Documentation/notation/other#index-_005cwith_002doutline
as a speaking example.
Cheers,
Pierre

Le dim. 4 oct. 2020 à 22:26, Jean Abou Samra <j...@abou-samra.fr> a écrit :

> > Hi List,
> > I'm trying to understand the difference between "outline" and
> > "dimensions":
> >
> > \version "2.20.0"
> > \markup {
> >    "1234"
> >     \combine
> >     \filled-box #'(-1 . 4) #'(-1 . 2.5) #1
> >     \override #'(style . outline)
> >     \override #'(thickness . 3)
> >     \whiteout
> >     \with-outline "555"  "5" "6789"
> > }
> > \markup {
> >    "1234"
> >     \combine
> >     \filled-box #'(-1 . 4) #'(-1 . 2.5) #1
> >     \override #'(style . outline)
> >     \override #'(thickness . 3)
> >     \whiteout
> >     \with-dimensions-from "555"  "5" "6789"
> > }
> >
> > Can anyone show me a clearer example?
> > TIA, cheers,
> > Pierre
>
> Hi Pierre,
>
> Looks like we're temporarily swapping roles…
>
>  From the code, I believe outlines as in \with-outline are the contour
> used by skylines, so it will only make a difference in spacing. They are
> different from the outlines drawn by \whiteout, I think.
>
> Below, a somewhat far-fetched example:
>
> \version "2.21.7"
>
> hugeTilde = \markup \scale #'(4 . -4) "~"
>
> { c'1-\markup \with-dimensions-from \hugeTilde "5" -> }
> { c'1-\markup \with-outline \hugeTilde "5" -> }
>
> Attached is the output when using the -d debug-skylines option.
>
> In daily practice, I'm not sure it makes a significant difference though.
>
> Best,
> Jean
>
>

Reply via email to