xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Pfeiffer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BATIK-1014) Valid input arcs produce non-rendered SVG arcs
Date Thu, 17 May 2018 15:29:00 GMT

    [ https://issues.apache.org/jira/browse/BATIK-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16479205#comment-16479205
] 

Philipp Pfeiffer commented on BATIK-1014:
-----------------------------------------

I have the same problem. I am trying to use svg icons for my desktop application's toolbar,
based on [Feathericons|https://feathericons.com/]. If I use an icon with circle or ellipse,
e. g. "user.svg" from [Feathericons|https://feathericons.com/] I get a distorted display.
The head looks like an "egg head" and not round. In other situations, e. g. "help-circle",
the outer and inner element are not centered both. 

Even if I manipulate my svg graphic in different ways, I do not get any acceptable result.

Has anybody an idea to solve this issue? 

> Valid input arcs produce non-rendered SVG arcs
> ----------------------------------------------
>
>                 Key: BATIK-1014
>                 URL: https://issues.apache.org/jira/browse/BATIK-1014
>             Project: Batik
>          Issue Type: Bug
>          Components: SVGGraphics2D
>    Affects Versions: 1.7
>         Environment: Operating System: All
> Platform: PC
>            Reporter: rolf.sigg
>            Assignee: Batik Developer's Mailing list
>         Attachments: AlmostCircleArc.java
>
>
> In some situations, pie charts produced using JFreeChart and SVGGraphics2D are rendered
empty. Root cause is that the SVG spec states that elliptical arcs with identical start and
end point are omitted (http://www.w3.org/TR/SVG11/implnote.html#ArcOutOfRangeParameters).
> However, the input Arc2D is ok, it is rendered perfectly e.g. to a bitmap image. The
attached code sample produces both bitmap and SVG.
> Increasing the numeric precision may help, but does not solve the problem. There will
be a case in which rounding effects will lead to identical start and end points.
> A possible approach could be to switch to circle based on the rounded points (SVGGraphics2D
switches to circle if the Arc2D describes a perfect circle).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Mime
View raw message