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

Should SVG define the exact rendered result for a stroke? #41

Closed
nikosandronikos opened this issue Jan 30, 2016 · 2 comments
Closed

Should SVG define the exact rendered result for a stroke? #41

nikosandronikos opened this issue Jan 30, 2016 · 2 comments

Comments

@nikosandronikos
Copy link
Member

Tav raised initial questions about how the pixels that are painted for a stroke are calculated:
http://tavmjong.free.fr/SVG/STROKING/

The following options are commonly used:

  1. Line segment of length stroke-width centered on stroke and run along the stroke
    from start to end. Any point crossed is part of the stroke.
    Described as 'offset curve' (CAD) and 'parallel curve' (mathematical) methods
    in other communities.
  2. Points are generated along the path at stroke-width/2 distance along the normal. A path is created on each side that passes through each these points.

Current Situation

Specs that state strongly which method to use:

  • NV Path rendering

Specs that don't state which method to use:

  • SVG
  • PDF

Which option is used by implementations?
Cairo: 1
Ghostscript: 1
NV_Path: 1
Skia: 2
CoreGraphics: 2
Canon's PDF RIP: 1
Adobe PDF Print Engine: 1
Acrobat PRO: 1

@nikosandronikos
Copy link
Member Author

@nikosandronikos
Copy link
Member Author

Resolved that either option is allowed.
Specification updated in commit 27c3c20

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

No branches or pull requests

1 participant