Skip to content
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

[3841443] Multiline text with hard returns gets clipped with smaller font sizes. #81

Open
joebowden opened this issue Sep 17, 2014 · 2 comments

Comments

@joebowden
Copy link

Can we get more precision here, without breaking larger font sizes?

Test file: http://adobe.ly/1o3CNqu

Steps:

  1. Open test file in PS
  2. Open in Crema or generate svg

Result: All of the text layers are clipped. Expected: No clipping.

@joebowden joebowden changed the title Multiline text with hard returns gets clipped with smaller font sizes. [3841443] Multiline text with hard returns gets clipped with smaller font sizes. Oct 20, 2014
@joebowden
Copy link
Author

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.

@mvujovic mvujovic assigned mvujovic and unassigned jhatwich Dec 8, 2014
@mvujovic
Copy link
Contributor

mvujovic commented Dec 9, 2014

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.

redmunds pushed a commit that referenced this issue Aug 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants