-
Notifications
You must be signed in to change notification settings - Fork 230
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
Path numbers like X.Y.Z should be parsed as "X.Y" and "0.Z" #118
Comments
Actually the problem doesn't seem to be related to relative vs. absolute coordinates, but instead to a lack of padding between some of the numbers. E.g., the circle path part: c-17.3-54-14.3-108.3.7-153.8 Note the <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="baseball-ball" class="svg-inline--fa fa-baseball-ball fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M368.5 363.9 l28.8-13.9 c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5 l-28.7-14.1 c12.8-26 30-49 50.8-69 C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7 c20.7 19.9 37.9 42.9 50.7 68.8 l-28.7 14.1 c-11-22.3-25.7-42.1-43.5-59.4 C20.4 143.7 0 197.4 0 256 c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61 l28.8 13.9 c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6 z m-228.3-32 l-30.5-9.8 c14.9-46.4 12.7-93.8-.6-134 l30.4-10 c15 45.6 18 99.9 .7 153.8 z m216.3-153.4 l30.4 10 c-13.2 40.1-15.5 87.5-.6 134 l-30.5 9.8 c -17.3 -54 -14.3 -108.3 .7 -153.8 z"></path></svg> |
It looks like this is the same as #43 , which looks like it should be re-opened. |
The single SVG path as downloaded from https://fontawesome.com/icons/baseball-ball looks like this when rendered in Safari:
But when rendered in
SwiftSVGExampleMac
it looks like:The SVG path is as follows:
I'm guessing it has something to do with the relative curve commands, because when I translate all the relative paths to absolute paths (using the handy utility: https://codepen.io/thednp/pen/EgVqLw):
then it renders correctly (modulo the clipping issue, which is unrelated):
The text was updated successfully, but these errors were encountered: