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

微信小程序实现多行文本溢出,iOS出现文本重叠 #75

Open
zxxcos opened this issue May 6, 2022 · 0 comments
Open

微信小程序实现多行文本溢出,iOS出现文本重叠 #75

zxxcos opened this issue May 6, 2022 · 0 comments

Comments

@zxxcos
Copy link

zxxcos commented May 6, 2022

在微信小程序使用canvas绘制(json2canvas)多行文本(文本内容含回车换行符)时,Android正常,iOS出现文本重叠问题。有的字符串正常,例如:'我是一段文字,我会自动\n换行:有没有那么 永远不改变 拥word抱过的美\n丽 都再也不mayday破碎 让险峻岁月不能 在脸上撒野 让生\n离和死别都遥远',就没有问题,但是如果是这样的字符串就出现溢出,'我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会\n我是一段文字,我会'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant