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

The underlines of Chinese characters, English characters and symbols are not aligned #1242

Open
jayden320 opened this issue Oct 11, 2021 · 3 comments

Comments

@jayden320
Copy link

jayden320 commented Oct 11, 2021

The underlines of Chinese characters, English characters and symbols are not aligned
<p><u>这里是/中文he/llo这里/是/中文</u></p>

This is a screenshot of using DTAttributedLabel

image

This is a screenshot of using UILabel

image

DTCoreText version: 1.6.26
System version: iOS15

@BeingCode
Copy link

I have the same problem

@AndyLxl
Copy link

AndyLxl commented Feb 13, 2022

原先划线用透明色或同背景色,重新再划线,我是这么处理的

@ximmyxiao
Copy link
Contributor

There is a way to avoid this alignment , just replace the font from helvetica to pingfang
image

Here is the result after this change:
image

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

4 participants