svgObjectModelGenerator
svgObjectModelGenerator copied to clipboard
[3841443] Multiline text with hard returns gets clipped with smaller font sizes.
Can we get more precision here, without breaking larger font sizes?
Test file: http://adobe.ly/1o3CNqu
Steps:
- Open test file in PS
- Open in Crema or generate svg
Result: All of the text layers are clipped. Expected: No clipping.
There may some remaining issues in the latest branches of svgOMG and generator-assets. I found that if I created them at smaller font sizes, all looked mostly okay - but if I start at larger font sizes and then set a smaller font size, the viewport is set for the larger font size.
Clipping issue verified. I'm adding code to PS to output detailed glyph metrics. We may be able to leverage those to get more accurate bounds. On the other hand, the browser font rendering may just be different enough that even if we have detailed glyph metrics from PS, they won't help us with knowing the browser rendering bounds. Needs some investigation.