bug-lilypond
[Top][All Lists]
Advanced

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

Re: \path markup command computes incorrect extents when using rmoveto a


From: Pierre Perol-Schneider
Subject: Re: \path markup command computes incorrect extents when using rmoveto after closepath
Date: Mon, 20 Jan 2020 13:49:10 +0100

Hi Aaron,
A workaround could be to use 'make-path-stencil instead, eg.:

\version "2.19"
#(set-global-staff-size 100)

% Result using M (moveto):
\markup\box\stencil
  #(make-path-stencil
    `(M 2 3 l 1 1 l 0 -1 z M 3.5 3 l 1 1 l -1 0 z)
    .1 1 1 #f)

% Result using m (rmoveto):
\markup\box\stencil
  #(make-path-stencil
    `(M 2 3 l 1 1 l 0 -1 z m 1.5 0 l 1 1 l -1 0 z)
    .1 1 1 #f)

Cheers,
Pierre

Le lun. 20 janv. 2020 à 12:10, Aaron Hill <address@hidden> a
écrit :

> On 2020-01-19 10:20 pm, Aaron Hill wrote:
> > The following patch seems to address the issue:
> >
> > ====
> > [ . . . ]
> > ====
>
> After my work on \svgPath (submitted to the main mailing list), I do not
> believe the patch is correct.  closepath should only be setting
> current-point to start-point, while start-point should be preserved.
> Rather, it is only on a moveto/rmoveto that the start-point would be
> set.
>
>
> -- Aaron Hill
>
> _______________________________________________
> bug-lilypond mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>


reply via email to

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