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

有点不是很明白的地方 #1

Open
PhilCai1993 opened this issue Apr 7, 2016 · 0 comments
Open

有点不是很明白的地方 #1

PhilCai1993 opened this issue Apr 7, 2016 · 0 comments

Comments

@PhilCai1993
Copy link

frame.size.width += CGRectGetMaxX(glyphRect) - CGRectGetMaxX(frame)

这个是让前面的一个layer的宽度放大, 防止这个layer截断glyph?但是放大的值是
CGRectGetMaxX(glyphRect) - CGRectGetMaxX(frame),是为什么呢?
拿单词“WAY”举例,每个字母都有那个kerning,
"我们需要将前一个 textLayer 取出来调整其 Rect 的宽度至新的 glyphRect 的最右边"看到文章是这么说的,但是实际上我看到的结果是:“W”的layer的宽度是到了“Y”的最左边,而不是“A”的最右边,是需要这个效果吗?

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