Re: Missing stroke-linejoin attribute in SVG output for filldraw command

luigi scarso <[email protected]> Thu, 5 Sep 2024 15:31:46 +0200
Newsgroups gmane.comp.tex.metapost
Message-ID <CAG5iGsAJqwv6fu4Z0B9R6WjLCR8YQMniBb+t3XG9+GOhkGrMOQ@mail.gmail.com>
--===============2399834853632133699==
Content-Type: multipart/alternative; boundary="000000000000911d0706215f50aa"

--000000000000911d0706215f50aa
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, 5 Sept 2024 at 15:15, Joshua Kr=C3=A4mer <[email protected]> wrot=
e:

> Hi all,
>
> the following sample file defines two rectangles with a draw and
> filldraw command, respectively. In the generated SVG file, the first
> rectangle with the draw command contains a path element with the
> attribute "stroke-linejoin: round;" and thus appears as intended, with
> rounded corners. This attribute is missing for the second rectangle with
> the filldraw command, which thus appears with sharp corners. I think
> this is a bug, because drawing or filldrawing with pencircle should
> always result in rounded corners. Adding "linejoin :=3D rounded;" doesn't
> make a difference.
>
> outputformat :=3D "svg";
> beginfig(1);
>         pickup pencircle scaled 12;
>         draw unitsquare scaled 48;
>         filldraw unitsquare scaled 48 shifted (72, 0);
> endfig;
> end;
>

Thank you for the report, I will check it this weekend.

--
luigi

--000000000000911d0706215f50aa
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Thu, 5 Sept 2024 at 15:15, Joshua =
Kr=C3=A4mer &lt;[email protected]&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">Hi all,<br>
<br>
the following sample file defines two rectangles with a draw and <br>
filldraw command, respectively. In the generated SVG file, the first <br>
rectangle with the draw command contains a path element with the <br>
attribute &quot;stroke-linejoin: round;&quot; and thus appears as intended,=
 with <br>
rounded corners. This attribute is missing for the second rectangle with <b=
r>
the filldraw command, which thus appears with sharp corners. I think <br>
this is a bug, because drawing or filldrawing with pencircle should <br>
always result in rounded corners. Adding &quot;linejoin :=3D rounded;&quot;=
 doesn&#39;t <br>
make a difference.<br>
<br>
outputformat :=3D &quot;svg&quot;;<br>
beginfig(1);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 pickup pencircle scaled 12;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 draw unitsquare scaled 48;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 filldraw unitsquare scaled 48 shifted (72, 0);<=
br>
endfig;<br>
end;<br></blockquote><div><br></div><div>Thank you for the report, I will c=
heck it this weekend.</div><div><br></div><div>--</div><div>luigi=C2=A0</di=
v></div></div>

--000000000000911d0706215f50aa--

--===============2399834853632133699==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
http://tug.org/metapost/

--===============2399834853632133699==--