문제

How can we know if the text of a CTRun is right to left? Thanks

도움이 되었습니까?

해결책

I do not have practical experience with CTRun, but from the documentation is seems that

 CTRunStatus CTRunGetStatus(CTRunRef run)

returns the information you need, the return value is a bitfield:

enum {
   kCTRunStatusNoStatus = 0,
   kCTRunStatusRightToLeft = (1 << 0),
   kCTRunStatusNonMonotonic = (1 << 1),
   kCTRunStatusHasNonIdentityMatrix = (1 << 2)
};
typedef uint32_t CTRunStatus;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top