2013-08-02 45 views

回答

2

我沒有實踐經驗的CTRun,但是從文檔似乎

CTRunStatus CTRunGetStatus(CTRunRef run) 

返回你所需要的信息,返回值是位域:

enum { 
    kCTRunStatusNoStatus = 0, 
    kCTRunStatusRightToLeft = (1 << 0), 
    kCTRunStatusNonMonotonic = (1 << 1), 
    kCTRunStatusHasNonIdentityMatrix = (1 << 2) 
}; 
typedef uint32_t CTRunStatus;