我没有实际经验CTRun
,但从文档看来
CTRunStatus CTRunGetStatus(CTRunRef run)
返回你需要的信息,返回值是一个位域:
enum {
kCTRunStatusNoStatus = 0,
kCTRunStatusRightToLeft = (1 << 0),
kCTRunStatusNonMonotonic = (1 << 1),
kCTRunStatusHasNonIdentityMatrix = (1 << 2)
};
typedef uint32_t CTRunStatus;