We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
frame.size.width += CGRectGetMaxX(glyphRect) - CGRectGetMaxX(frame)
这个是让前面的一个layer的宽度放大, 防止这个layer截断glyph?但是放大的值是 CGRectGetMaxX(glyphRect) - CGRectGetMaxX(frame),是为什么呢? 拿单词“WAY”举例,每个字母都有那个kerning, "我们需要将前一个 textLayer 取出来调整其 Rect 的宽度至新的 glyphRect 的最右边"看到文章是这么说的,但是实际上我看到的结果是:“W”的layer的宽度是到了“Y”的最左边,而不是“A”的最右边,是需要这个效果吗?
CGRectGetMaxX(glyphRect) - CGRectGetMaxX(frame)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
frame.size.width += CGRectGetMaxX(glyphRect) - CGRectGetMaxX(frame)
这个是让前面的一个layer的宽度放大, 防止这个layer截断glyph?但是放大的值是
CGRectGetMaxX(glyphRect) - CGRectGetMaxX(frame)
,是为什么呢?拿单词“WAY”举例,每个字母都有那个kerning,
"我们需要将前一个 textLayer 取出来调整其 Rect 的宽度至新的 glyphRect 的最右边"看到文章是这么说的,但是实际上我看到的结果是:“W”的layer的宽度是到了“Y”的最左边,而不是“A”的最右边,是需要这个效果吗?
The text was updated successfully, but these errors were encountered: