[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Outliner markup command
From: |
Thomas Morley |
Subject: |
Re: Outliner markup command |
Date: |
Wed, 13 Jan 2016 22:14:10 +0100 |
2016-01-13 16:17 GMT+01:00 Paul Morris <address@hidden>:
>> On Jan 12, 2016, at 6:09 PM, Thomas Morley <address@hidden> wrote:
>>
>> Though, there might be a bug in `stencil-whiteout-outline', Paul cc-ed.
>>
>> Look at:
>>
>> \markup \stencil
>> #(stencil-whiteout-outline
>> (make-filled-box-stencil '(-1 . 1) '(-1 . 1))
>> 0.5
>> red
>> 16
>> 1)
>>
>> \markup \stencil
>> #(stencil-whiteout-outline
>> (stencil-with-color (make-filled-box-stencil '(-1 . 1) '(-1 . 1)) green)
>> 0.5
>> red
>> 16
>> 1)
>>
>> First one is ok.
>> But in the second one the color from the stencil is taken (green) and
>> the specified (red) is ignored.
>> Will investigate more detailed the upcoming days.
>
> Huh, that’s odd… stencil-whiteout-box works as expected (see below), so the
> problem must indeed be in stencil-whiteout-outline.
>
> -Paul
Yep.
In this part of the code for stencil-whiteout-outline you try to apply
a color to a stencil, which is derived from the original one,
(ly:stencil-expr
(stencil-with-color
(radial-plot thickness stil empty-stencil)
color))
Though, if this original stencil is colored already, it will fail.
See:
#(define my-box-stil (make-filled-box-stencil '(-1 . 1) '(-1 . 1)))
\markup {
\stencil #my-box-stil
\stencil #(stencil-with-color my-box-stil green)
\stencil #(stencil-with-color (stencil-with-color my-box-stil green) red)
}
Thinking about it, I came to the conclusion it's desired behaviour.
Otherwise the following wouldn't work:
\markup \with-color #red { foo \with-color #green bar buzz }
So far the reason, now looking forward to make it work anyway.
Cheers,
Harm
- Re: Outliner markup command, (continued)
- Re: Outliner markup command, Simon Albrecht, 2016/01/13
- Re: Outliner markup command, Pierre Perol-Schneider, 2016/01/13
- Re: Outliner markup command, Thomas Morley, 2016/01/12
- Re: Outliner markup command, Simon Albrecht, 2016/01/12
- Re: Outliner markup command, Pierre Perol-Schneider, 2016/01/13
- Re: Outliner markup command, Paul Morris, 2016/01/13
- Re: Outliner markup command,
Thomas Morley <=
- Re: Outliner markup command, Thomas Morley, 2016/01/15
- Re: Outliner markup command, Pierre Perol-Schneider, 2016/01/16
- Re: Outliner markup command, Pierre Perol-Schneider, 2016/01/16
- Re: Outliner markup command, Paul Morris, 2016/01/17