-
-
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
SVG Export for Textbox loses style on the 2nd line, and other issues #2829
Comments
Case 1 has been solved by a recent PR. Case 2 has been reported already . Case 3 we are going to check what is happening. |
@asturur, do you have the PR number ? Thanks |
Don't you still need to override the _setSVGTextLineText because the text is auto wrap and the _lines still have 1 length and not 2? Otherwise it will use default the styles for the textbox. https://jsfiddle.net/jtweku/cdjth9k4/1/ Maybe another solution is to create a private method _hasStyle(linenumber) to indicate if line has style in IText and override in Textbox class and use it in checking if the line has any styling in _setSVGTextLineText ? |
Ok i thought it was same issue. I will check also this one then. |
case 2 solved |
@jtweku check solution proposed in #2853, it should fix the issue. About your proposed solution: It should be something like
If you are experimenting with styled textboxes i would like you to test this solution because currently i do not have time. |
Version
1.6.0
Test Case
http://jsfiddle.net/jtweku/cdjth9k4/2/
there are 3 issues all with the second textbox,
Expected Behavior
I have a fix for the svg export, remove the commented line of the code to see the correct behaviour
_setSVGTextLineChars in the IText class should use the _getStyleDeclaration (because it is overridden in the Textbox class)
The text was updated successfully, but these errors were encountered: