lilypond-user
[Top][All Lists]
Advanced

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

Dimensions vs outline


From: Jean Abou Samra
Subject: Dimensions vs outline
Date: Sun, 4 Oct 2020 22:26:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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

Attachment: tmp.cropped.pdf
Description: Adobe PDF document


reply via email to

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