-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
svg not rendered completely #492
Comments
it seems that the text must be transformed into paths before saving in svg under inkscape (do a Shift+Ctrl+C on the text) but even with that, the svg obtained does not look better on Makelangelo... there is surely the fact that the batik lib is to update ... and/or the fact that the system fonts are not necessarily well compatible with the JRE (when we do not transform the text in paths ) ) a workaround when the SVG does not render as you want, is an external transformation, of an SVG format into EPS with inkscape, then EPS into DXF format with pstoedit ... cf : https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_2D_formats Of course it's not the easiest but it works well (especially when you have everything installed inkscape and pstoedit and make to use the Makefile Create a directory put the .svg and the makefile and do
and |
Thx for the workaround ! |
This is a part of #353 |
closing for duplicate of #353 |
Hey not so fast cowboy ;) In fact, from what I understood from LoadSVG, the svg file you quote here does not have the problem of the lack of the but rather of the way in which the SVG/xml is exploited/explored. (do not take into account the parent elements (like g or symbol or pattern ...) of the path tags (we just do a select all "path" elements without taking into account their level in the xml tree) and therefore if an element (like the drawing of the robot from you file) is encapsulated in a tag g which has a transformation (like a move of position x,y ), this transformation is not taken into account. ... so basically that's another story / another problem ... |
Changing |
I see that xalan-2.7.2.jar from maven central has a META-INF/services/org.apache.xalan.extensions.bsf.BSFManager file declaring org.apache.bsf.BSFManager as a provider ... but org.apache.bsf doesn't exist in the JAR. |
yes, this in the problem and there is no fix on this jar :'( Before the java modularization introduced in java 9, it was not an issue. |
This issue is growing stale and will be automatically closed in 60 days if nothing is done. |
I'm not convinced this is the issue. Looking at only the robot in the bottom of the image I see the SVG code is <path d="M 118.5,102.5
C 118.5,80.168 136.668,62 159,62
h 144
c 22.332,0 40.5,18.168 40.5,40.5
v 48
c 0,8.239 -16.171,16.553 -30.019,21.169
C 291.56,178.976 262.268,183 231,183 199.732,183 170.439,178.976 148.519,171.669 134.671,167.053 118.5,158.739 118.5,150.5
Z
m 0,80
v -8.518
c 5.971,4.143 14.148,8.208 25.275,11.918 23.41,7.803 54.387,12.1 87.225,12.1 32.838,0 63.815,-4.297 87.225,-12.101 11.128,-3.709 19.304,-7.775 25.275,-11.918
v 8.518
c 0,22.332 -18.168,40.5 -40.5,40.5
H 159
C 136.668,223 118.5,204.832 118.5,182.5
Z" /> Which is reported in the log file as (truncated numbers for clarity)
Note that all horizontal and vertical lines are smashed by the parsing library to line abs and relative moves are smashed to move abs. |
You're probably right, I spoke without really knowing and testing because the svg interpretation lib escapes me. And so I made a guess that was probably wrong. my excuses. |
This issue is growing stale and will be automatically closed in 60 days if nothing is done. |
Steps to make the bug happen
This file has been created with inkscape: original file
What was supposed to happen
the svg looks like this:
Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: