Kozea / Kozea/CairoSVG

Markerunits default value not respected

Open
#133 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
951
Forks
166
PR merge metrics
No merged PRs in 30d

Description

To reproduce on v2.0.0:
* Create an SVG containing a stroke with a width different from 1 and markers. (or use [this one](http://antonakhmerov.org/misc/arrow.svg)).
* convert with cairosvg.
* Observe that the marker size is not calculated correctly.

According to [the spec](https://www.w3.org/TR/SVG11/painting.html#MarkerUnitsAttribute), the `MarkerUnitsAttribute` default value is `strokeWidth`, which means the marker should be scaled with the stroke. Right now this setting is not applied.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the linked arrow.svg or an SVG containing markers and a stroke width other than 1, then trace CairoSVG's marker handling. Compare the result with the SVG 1.1 MarkerUnitsAttribute specification; done means the default strokeWidth setting scales the marker with the stroke width.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.