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

skia does not split the into separate paths #15

Open
typemytype opened this issue Aug 20, 2018 · 2 comments
Open

skia does not split the into separate paths #15

typemytype opened this issue Aug 20, 2018 · 2 comments

Comments

@typemytype
Copy link

screen shot 2018-08-20 at 10 30 21

left: the source (as pasted below)
middle: booleanOperations
right: skia

the issue is that it should be 3 paths instead of 2

<?xml version="1.0" encoding="UTF-8"?>
<glyph name="A" format="2">
  <advance width="500"/>
  <outline>
    <contour>
      <point x="46.0" y="60.0" type="line"/>
      <point x="47.0" y="60.0"/>
      <point x="90.0" y="383.0"/>
      <point x="186.0" y="371.0" type="curve" smooth="yes"/>
      <point x="282.0" y="359.0"/>
      <point x="394.0" y="248.0"/>
      <point x="365.0" y="171.0" type="curve" smooth="yes"/>
      <point x="336.0" y="94.0"/>
      <point x="238.0" y="254.0"/>
      <point x="129.0" y="280.0" type="curve" smooth="yes"/>
      <point x="20.0" y="306.0"/>
      <point x="43.0" y="218.0"/>
      <point x="89.0" y="155.0" type="curve" smooth="yes"/>
      <point x="135.0" y="92.0"/>
      <point x="379.0" y="55.0"/>
      <point x="379.0" y="55.0" type="curve"/>
    </contour>
  </outline>
</glyph>
@typemytype
Copy link
Author

also updated my drawBot test script, so it draws an indicator when the amount of contours are different
https://gist.github.com/typemytype/ada7589bd2a564cefac681f45c3374e5

@typemytype
Copy link
Author

a simplified example

screen shot 2018-08-20 at 11 03 40

left: the source (as pasted below)
middle: booleanOperations
right: skia

<?xml version="1.0" encoding="UTF-8"?>
<glyph name="M" format="2">
  <advance width="500"/>
  <outline>
    <contour>
      <point x="67" y="219" type="line"/>
      <point x="67" y="424" type="line"/>
      <point x="279" y="424" type="line"/>
      <point x="279" y="219" type="line"/>
    </contour>
    <contour>
      <point x="179" y="290" type="line"/>
      <point x="346" y="290" type="line"/>
      <point x="346" y="351" type="line"/>
      <point x="179" y="351" type="line"/>
    </contour>
  </outline>
</glyph>

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

No branches or pull requests

1 participant