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

2020-01-20 Thread Pierre Perol-Schneider
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\sten

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

2020-01-20 Thread Aaron Hill
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-poi

\path markup command computes incorrect extents when using rmoveto after closepath

2020-01-19 Thread Aaron Hill
The logic within the \path markup command ignores the effect of closepath when converting relative coordinates to absolute ones. closepath moves the pen back to the starting point of the path. Relative coordinates are based on the current pen position, not the most recently specified point.