TextKitAndAnimationEffect icon indicating copy to clipboard operation
TextKitAndAnimationEffect copied to clipboard

Text kit and Text Animation study Demo

Results 2 TextKitAndAnimationEffect issues
Sort by recently updated
recently updated
newest added

``` if kerningRange.location == index && kerningRange.length > 1 ``` 这个判断写的有问题,应该去掉对length的判断,现在这样写,如果有一个字符串”YoYoYo”这样的,就会显示有问题。 另外我把字体换成[UIFont fontWithName:@"Georgia-Italic" size:17];发现还是会有被截掉的部分,并不能完美的显示出来。 ``` if !olderLayer.bounds.equalTo(olderLayer.bounds) ``` 这个判断也有问题,永远也不会进去,而且这里也不需要进去。

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