Skip to content

SVG importer ignores fill-rule="evenodd" #4332

Description

@NicTanghe

Description

The SVG importer does not respect fill-rule="evenodd". A compound path whose inner subpath should create a transparent hole is imported as a solid shape. follow up of #4329

Steps to reproduce

  1. Open fill-rule-evenodd.svg in a browser or another SVG viewer. It appears as a purple square with a transparent square hole.
  2. Import the same file into Graphite.
  3. Compare the imported result with the browser rendering.

Expected behavior

The imported shape is a purple square with a transparent square hole, matching the SVG rendering in a browser.
Image

Actual behavior

The inner square is filled, so the imported result is a solid purple square. The importer behaves as if the path used the default nonzero fill rule.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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