svgObjectModelGenerator
svgObjectModelGenerator copied to clipboard
No support for text wrapping
Photoshop support auto wrapping of text. SVG doesn't have that yet. We need to simulate it. Generator does not provide all needed information about this yet. JS doesn't help here, since we export SVG images which are not allowed to run scripts.
See https://github.com/adobe-photoshop/generator-core/issues/250
This is critical for Crema - otherwise, we don't have feature parity with the older generator svg engine.
Not sure what you mean, the old engine doesn't have text wrapping.
The old engine supports hard returns for multiline text.
We do as well. We even have multiple tests for that.
Hmm...I do see separate lines, but they're overlapping. Is that expected?
no, could you send me your test please?
Thanks Dirk - emailed a test file.
Need to fix this for parity with CC Extract's SVG output.
Request has been submitted to Generator a while back ago. It seems that we disagree on expectations of developers with the Generator team: https://github.com/adobe-photoshop/generator-core/issues/250
Hard returns are working now in Crema. We would have parity with Extract if we supported paragraph text with soft returns.
Here's a test file that Crema currently does not wrap the text for: http://adobe.ly/1lODgkY
@dirkschulze, extract/graphite handles the soft returns using t-span elements, which of course don't actually wrap in a browser - but, that is the kind of parity that Crema is looking for with extract right now. Is that a different issue than this one?
Hard returns should have worked from the beginning in svgOMG. The soft returns is what I was after. And yes, this can just be implemented with more tspans. Just like we do for hard returns.
I'm actively working on this.