Core Text Flashcards
What does an app using Core Text need?
It needs to have the Core Text framework added to the project.
How might I use Core Text with a UIView?
Override [UIView drawRect:] and use Core Text there.
What include file is needed to use Core Text?
The file “CoreText/CoreText.h”.
What must I always do when using functions that start with “Create”?
Call CFRelease() on their references before returning.
With Core Text, what is used instead of NSString?
NSAttributedString
Core Text works directly with _____________, also known as _____________.
Core Graphics, Quartz.
Core Text needs Quartz to ______________.
actually draw the glyphs.
The Core Text interface is in what programming language?
C
NSAttributedString* is toll-free bridged with ___________ and so…
CFAttributedStringRef; the two can be used interchangeably in function calls.
At the top of the Core Text class hierarchy is ________
CTFramesetter
With an attributed string and a graphics path, CTFramesetter will generate ______________.
One or more frames (CTFrame objects).
Each CTFrame object represents ____________.
one paragraph
The CTFrame object contains one or more _____________.
CTLine objects, each of which is a line of text.
A CTLine object contains one or more _________
CTRun objects, which are “glyph runs”, a series of glyphs with the same attributes and direction.