You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preface
I am very inexperienced when it comes to parsing svg-definitions and am not really familiar with the spec, so I apologize if I am completely misunderstanding what is happening here or I use the wrong terminology.
Issue
Any circular sub-path enclosed by an arbitrary different path is not rendered properly.
Examples (left svg rendered by browser, right by oksvg):
These examples only use a path-object with z, Z, m, M and a operators inside a viewbox.
Steps to Reproduce
Add either the following minimal example (circle with donut-hole) or any svg from fontawesome.com with a hole as a svg-file to the existing testdata folder of oksvg add the reference to the file in svgdraw_test.go:
Steps Taken
I got a local development environment for oksvg running and fiddled with the svg-files themselves as well as the code handling z, Z, m and M. I assumed it might be an edge-case for handling the closing of arcs that was misbehaving, but failed to identify anything meaningful.
Notes
This is not a rendering error in VSCode. The generated png-files look identical in any other program.
I came across this because I am developing an application with https://github.com/fyne-io/fyne, which uses oksvg. When I tried to add more icons to the existing selection, the icons I added rendered incorrectly with the same issues as shown above.
The text was updated successfully, but these errors were encountered:
Preface
I am very inexperienced when it comes to parsing svg-definitions and am not really familiar with the spec, so I apologize if I am completely misunderstanding what is happening here or I use the wrong terminology.
Issue
Any circular sub-path enclosed by an arbitrary different path is not rendered properly.
Examples (left svg rendered by browser, right by oksvg):
These examples only use a path-object with
z
,Z
,m
,M
anda
operators inside a viewbox.Steps to Reproduce
Add either the following minimal example (circle with donut-hole) or any svg from fontawesome.com with a hole as a svg-file to the existing
testdata
folder ofoksvg
add the reference to the file insvgdraw_test.go
:Specifically tested and incorrectly rendered files from fontawesome:
Steps Taken
I got a local development environment for
oksvg
running and fiddled with the svg-files themselves as well as the code handlingz
,Z
,m
andM
. I assumed it might be an edge-case for handling the closing of arcs that was misbehaving, but failed to identify anything meaningful.Notes
oksvg
. When I tried to add more icons to the existing selection, the icons I added rendered incorrectly with the same issues as shown above.The text was updated successfully, but these errors were encountered: