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

TextEffects有个bug #2

Open
whlpkk opened this issue Jul 4, 2017 · 0 comments
Open

TextEffects有个bug #2

whlpkk opened this issue Jul 4, 2017 · 0 comments

Comments

@whlpkk
Copy link

whlpkk commented Jul 4, 2017

if kerningRange.location == index && kerningRange.length > 1 

这个判断写的有问题,应该去掉对length的判断,现在这样写,如果有一个字符串”YoYoYo”这样的,就会显示有问题。
另外我把字体换成[UIFont fontWithName:@"Georgia-Italic" size:17];发现还是会有被截掉的部分,并不能完美的显示出来。

if !olderLayer.bounds.equalTo(olderLayer.bounds)

这个判断也有问题,永远也不会进去,而且这里也不需要进去。

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