Repository navigation
Implement CTRunGetTextMatrix and CTRunGetStatus - #1985
Conversation
|
When/how would a run's matrix ever become non-identity? |
|
I'm not certain. The documentation doesn't specify and I wasn't able to make a run with non-identity text matrix In reply to: 280432102 [](ancestors = 280432102) |
|
Hmm, could you try to dig a little bit more? I'm not super concerned but I am vaguely curious. |
|
The text matrix will be non-identity if the run's font has a non-identity matrix. Changing CTRun to support this is in #1987 |
ms-jihua
left a comment
There was a problem hiding this comment.
Would add some more detail to that caveat comment, otherwise fine.
| @Status Stub | ||
| @Notes | ||
| @Status Caveat | ||
| @Notes Only support identity matrix |
There was a problem hiding this comment.
Nit: "supports"
There was a problem hiding this comment.
I wrote it to mean "We only support identity matrix," though it could also be interpreted as "CTRun only supports identity matrix." I suppose I should use complete sentences.
74e637b to
a0d2aee
Compare
|
Rebased on top of recent develop changes, will merge when tests pass. |
| CFAttributedStringRef string = (__bridge CFAttributedStringRef)getString(@"foobar"); | ||
| auto line = woc::MakeAutoCF<CTLineRef>(CTLineCreateWithAttributedString(string)); | ||
| CFArrayRef runsArray = CTLineGetGlyphRuns(line); | ||
| CTRunRef run = (CTRunRef)CFArrayGetValueAtIndex(runsArray, 0); |
Fixes #1982