How to make a CTRunRef object? (iPhone SDK 4)
There is several CTLineCreate* functions, but I can't find a function whi开发者_Python百科ch make CTRunRef.
CTRun
values are created by Core Text when needed (specifically, they're created by CTTypesetter
/CTLine
and supplied by CTLineGetGlyphRuns()
.)
If you're trying to draw glyph runs with CTRunDraw()
, use CTTypesetter
to set up your text first. If you need CTRun
values for some other purpose... what is it? :)
精彩评论