Skip to content

Very short segments lead to many extraneous points #16

@simoncozens

Description

@simoncozens

Consider a glyph designed for CNC routers which cannot change direction quick enough to draw sharp corners; you have to add tiny line segments to help change direction:

Screenshot 2021-10-20 at 11 08 39

Sample glif:

<?xml version="1.0" encoding="UTF-8"?>
<glyph name="A" format="2">
        <advance width="600"/>
        <unicode hex="0041"/>
        <outline>
                <contour>
                        <point x="0" y="150" type="move"/>
                        <point x="100" y="150" type="line"/>
                        <point x="100" y="141" type="line"/>
                        <point x="0" y="0" type="line"/>
                </contour>
        </outline>
</glyph>

Unfortunately when this is stroked with MFEKstroker, you get lots of weird points:

Screenshot 2021-10-20 at 11 10 29

Which (when combined with #15) makes the outline really bad...

Screenshot 2021-10-20 at 11 11 43

Mitigating #15 will fix the problems in the top right, but the bottom right is still urgh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingworkaround-availableA workaround, described in the thread is available.workaround-sucksAlthough we have a workaround, it's not good enough to close the issue, and this still needs work.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions