关于TextKit 1与TextKit 2中Exclusion Paths的技术差异问询
TextKit 1与TextKit 2中Exclusion Paths的技术差异问询
先跟你梳理下核心实现细节:
- 下面要展示的两种方案里,红色轮廓都是基于
NSTextContainer的exclusionPaths属性来实现的 - 标记行尺寸的蓝色轮廓有两种来源:要么直接来自
NSTextLayoutManager,要么是通过NSLayoutManager中的字形数据计算得到的
TextKit 1

内容来源于stack exchange
相关产品推荐
相关产品推荐

