bug-lilypond
[Top][All Lists]
Advanced

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

Re: negative values for \hspace don't work anymore


From: David Kastrup
Subject: Re: negative values for \hspace don't work anymore
Date: Wed, 21 Nov 2012 12:24:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Eluze <address@hidden> writes:

> David Kastrup wrote
>> Eluze &lt;
>
>> eluzew@
>
>> &gt; writes:
>> 
>>> should this be changed to /amount (positive number)/
>> 
>> I don't think so.  Instead LilyPond should be able to deal with
>> backspacing stencils.
>
> that would be even nicer!
>
> now coming back to the original topic where Phil wanted to make a correction
> to the distance of the text after the \circle:
>
> \markup { 
>     \override #'(circle-padding . 0.55) 
>     \fontsize #-2.5 { "tune " \circle 3 \hspace #-2 "to f #" } 
> }
>
> he had to do this because overriding the circle-padding also increases the
> distance of the following object:
>
> \markup  \center-column { 
>   \override #'(circle-padding . 0) \box  \concat { "xxx" \box \circle 3
> "xxx" } 
>   \override #'(circle-padding . 12) \box  \concat { "xxx" \box \circle 3
> "xxx" } 
> }
>
> hspace.png <http://lilypond.1069038.n5.nabble.com/file/n136649/hspace.png>  
>
> is this intended? and why?

Well, as I explained \hspace special-cases negative distances by setting
_both_ left and right border of the stencil to a negative value rather
than just the right one.  So the padding sees the left border and pushes
out.

-- 
David Kastrup




reply via email to

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