jrmuizel / raqote

Rust 2D graphics library
BSD 3-Clause "New" or "Revised" License
1.02k stars 59 forks source link

Thin lines are too bold #115

Open RazrFalcon opened 4 years ago

RazrFalcon commented 4 years ago

Following https://github.com/RazrFalcon/resvg/issues/239, a file with stroke-width=0.02 rendered as:

T199618

Looks like this is kinda an UB, since Firefox and Batik are also producing different results. So I'm not sure if this is actually a bug.

Also, it's might be related to anti-aliasing.

JoKalliauer commented 4 years ago

FYI Firefox image has a much smaler size (left uper corner)

Shnatsel commented 4 years ago

Probably related to #106