I believe the intention is for CGContextShowGlyphsAtPoint
to be replaced by CGContextShowGlyphsAtPositions. You can get the glyph positions with CTRunGetPositionsPtr
or (if that returns NULL
), CTRunGetPositions
.
AFAICT, CGContextShowGlyphsAtPositions
also replaces several other former CoreText functions, such as CGContextShowGlyphs
, CGContextShowText
, and CGContextShowTextAtPoint
. Other former CoreText functions like CGContextSelectFont
are replaced by multiple new functions (in that case, CGContextSetFont
and CGContextSetFontSize
). I believe this is all fairly self-explanatory by reading the API.
There may be other deprecated functions I didn't specifically mention, but I figure you get the point.