-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fabric 2.0 : Space removed by toSVG in multiple style text #4116
Comments
Fixed! I m making a beta4 today fixing a bit of things |
Thanks that was awesomely fast! |
It seems this bug is back in beta 6 in Safari ? |
Can you paste here a full svg i can try in safari? |
Is this ok? Do you see the bug?
|
i ll try to open it in safari. if safari does not support the whitespace
attribute the other way is swapping spaces with non breakable spaces but i
would be sad to see safari so dumb
…On Aug 31, 2017 23:57, "Blob" ***@***.***> wrote:
Is this ok? Do you see the bug?
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="300" height="300" viewBox="0 0 300 300" xml:space="preserve">
<desc>Created with Fabric.js 2.0.0-beta6</desc>
<defs>
</defs>
<g transform="translate(185.5 123.1)">
<text xml:space="preserve" font-family="Times New Roman" font-size="40" font-style="normal" font-weight="normal" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1; white-space: pre;" >
<tspan x="-175" y="12.57" >Hello </tspan>
<tspan x="-76.13" y="12.57" style="font-weight: bold; ">world</tspan>
<tspan x="23.87" y="12.57" > man</tspan>
</text>
</g>
</svg>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4116 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABI4QLAJaXnsddiVFGymHO4CR6P9bvgEks5sdyw3gaJpZM4OfYeF>
.
|
Shouldn't we reopen this ticket? Did you find if the bug come from safari or fabric? :-) |
did not open safari yet. |
okay cool, so you think it could be "easy" to fix? |
yes it is. |
@nitin-bc we cannot take care of differences between browser and image-viewer. Only fabricjs related issue or svg non conformities. |
Yes, I can understand your concern and I am not asking to compare them both. I just want to convey you that space is being removed while generating the SVG image. Hope you are getting me. |
Hi @asturur, would you please update me on this if possible? |
Hi Everyone, Is there any update on this for me? It would be great if someone can help me out as soon as possible. Thank You. |
You are using 1.7.9 and not latest 1.7.22 and we do not have a reproducible case for it. We can t really help in this way |
I have used the latest one and seems working fine. Thank you. But in this case for masking feature, I can't see the added image to the canvas, even I have set the "Objectcaching:false" already |
Version
2.0 beta 3
Test Case
http://jsfiddle.net/S9sLu/1836/
Steps to reproduce
Select the word "world" hit ctrl-b to make it bold.
Hit btn "export SVG"
Expected Behavior
See the sentence "Hello world man" with all the right space.
![screen shot 2017-07-21 at 15 07 49](https://user-images.githubusercontent.com/8090162/28464698-a5a023e6-6e26-11e7-9823-11a358c03160.png)
In fabric 1.7.15 it's ok.
Actual Behavior
We wee "Hello worldman"
![screen shot 2017-07-21 at 15 07 21](https://user-images.githubusercontent.com/8090162/28464656-73e07a7c-6e26-11e7-9a55-c30871af054d.png)
The text was updated successfully, but these errors were encountered: