Bug 41294 - Stroke of circles with small radius totally wrong
Summary: Stroke of circles with small radius totally wrong
Status: NEW
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVG Viewer (show other bugs)
Version: 1.6
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
Depends on:
Reported: 2007-01-04 14:53 UTC by x00000000
Modified: 2007-09-24 19:44 UTC (History)
0 users

testcase (resize the window to see the effect) (145 bytes, image/svg+xml)
2007-01-04 14:55 UTC, x00000000
correct testcase (146 bytes, image/svg+xml)
2007-01-04 14:58 UTC, x00000000

Note You need to log in before you can comment on or make changes to this bug.
Description x00000000 2007-01-04 14:53:52 UTC
This simple SVG gives random results, depending on the window size:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 2 2">
  <circle r=".02" stroke="#000"/>

The radius of the circle seems to be correct for fill, but is always way too
large for stroke (if any is visible) and stroke-width is too small.
Other values for r give varying results.

Display is correct if everything is scaled up to larger values.
Comment 1 x00000000 2007-01-04 14:55:35 UTC
Created attachment 19362 [details]
testcase (resize the window to see the effect)
Comment 2 x00000000 2007-01-04 14:58:23 UTC
Created attachment 19363 [details]
correct testcase
Comment 3 x00000000 2007-01-05 00:56:45 UTC
This may be a Java bug:
I see the "diamond shapes" with an r in the testcase of about .010 .. .018.

~ $ java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)
Comment 4 Cameron McCormack 2007-09-24 19:44:50 UTC
It does look like a bug in Sun's renderer (which still exists in 1.6).  The bug
doesn't occur on Apple's 1.5 JVM on OS X.  Not sure there's anything we can do
from the Batik side.