-
Notifications
You must be signed in to change notification settings - Fork 33
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
Text goes out of boundary #14
Comments
@orsinium Thank you for reporting. Can I ask questions? The repository is https://github.com/dephell/dephell? The image type is SVG? I'd like to know about your environment if possible. Here is a screenshot of a card of dephell/dephell in SVG in gh-card.dev in Safari in macOS. |
Thank you for your reply :) Both svg and png give the same bug on original site. However, when I pasted the link on it here, it would be rendered correctly. That's strange. I'll discover it a bit tomorrow. |
@orsinium Thanks.
It's storage. But we have proof in the screenshot in the first issue comment. In PNG, I know some repos have the same problem. |
The purpose of this comment is to provide the current implementation causing this issue. Details of implementationIn the current implementation, a description text of repo is not auto line-wrapped. Very poor implementation is here. It splits a description into lines which may go out of boundary. gh-card/backend/src/main/scala/io/github/nwtgck/gh_card/GitHubRepositorySvgGenerator.scala Lines 6 to 24 in 74c93cb
I don't think the hard-coded Solution candidateAccording to https://stackoverflow.com/a/4991339/2885946, text wrapping is not supported in SVG 1.1.
The answer says |
Maybe, something wrong with my fonts
The text was updated successfully, but these errors were encountered: