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

luigi scarso <[email protected]> Wed, 9 Oct 2024 09:17:02 +0200
Newsgroups gmane.comp.tex.metapost
Message-ID <CAG5iGsCrhb3=yWzuvLFm3hi6+u24wwP97qpKZEW=jv9p0S4mTg@mail.gmail.com>
--===============8845743405201045119==
Content-Type: multipart/alternative; boundary="00000000000008dde50624060b4c"

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

On Thu, 5 Sept 2024 at 15:31, luigi scarso <[email protected]> wrote:

>
>
> On Thu, 5 Sept 2024 at 15:15, Joshua Kr=C3=A4mer <[email protected]> wr=
ote:
>
>> 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.
>

Hm, it just seems like a simple typo.
 Committed revision 72504.

--
luigi

--00000000000008dde50624060b4c
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:31, luigi s=
carso &lt;<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><=
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 K=
r=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 rgb(2=
04,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></div></blockquote><div><br></div><div>Hm,=
 it just seems like a simple typo.<br></div><div>=C2=A0Committed revision 7=
2504.</div><div><br></div><div>--</div><div>luigi</div></div></div>

--00000000000008dde50624060b4c--

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

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

--===============8845743405201045119==--