Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'M, q, t, t, t, t, z' path data rendering is broken in master after PR #925 #932

Closed
wieslawsoltes opened this issue Jan 2, 2022 · 1 comment · Fixed by wieslawsoltes/Svg.Skia#94 or #933

Comments

@wieslawsoltes
Copy link
Contributor

Description

The M, q, t, t, t, t, z path data rendering is broken is master after PR #925

Example data

paths-data-02-t.svg

<svg version="1.1" baseProfile="tiny" id="svg-root"
  width="100%" height="100%" viewBox="0 0 480 360"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

  <title id="test-title">$RCSfile: paths-data-02-t.svg,v $</title>
  <defs>
    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
      <font-face-src>
        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
      </font-face-src>
    </font-face>
  </defs>
  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
    <text font-size="12" x="120" y="14">Quadric bezier curves drawn with commands:</text>
 
    <!-- ====================================================================== -->
    <!-- Sin Wave using M, q, t, t, t, t, & z ================================ -->
    <!-- ====================================================================== -->
    <path id="Sin_Mqttttz" fill="none" stroke="#40DD20" d="M240 296q25-100 47 0t47 0t47 0t47 0t47 0z"/>
    <text font-size="12" x="380" y="236">M, q, t, t, t, t, z</text>
    <rect x="238" y="294" width="4" height="4" fill="#0000FF" stroke="none"/>
    <rect x="285" y="294" width="4" height="4" fill="#0000FF" stroke="none"/>
    <rect x="332" y="294" width="4" height="4" fill="#0000FF" stroke="none"/>
    <rect x="379" y="294" width="4" height="4" fill="#0000FF" stroke="none"/>
    <rect x="426" y="294" width="4" height="4" fill="#0000FF" stroke="none"/>
    <rect x="473" y="294" width="4" height="4" fill="#0000FF" stroke="none"/>
   </g>
  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
  </g>
  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
  <!-- comment out this watermark once the test is approved -->
  <!--<g id="draft-watermark">
    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
  </g>-->
</svg>

image

Used Versions

master

@wieslawsoltes wieslawsoltes changed the title The 'M, q, t, t, t, t, z' path data rendering is broken is master after PR #925 The 'M, q, t, t, t, t, z' path data rendering is broken in master after PR #925 Jan 2, 2022
@wieslawsoltes
Copy link
Contributor Author

This is how I fixed it in Svg.Skia wieslawsoltes/Svg.Skia@e717075

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant