Core Text Flashcards

1
Q

What does an app using Core Text need?

A

It needs to have the Core Text framework added to the project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How might I use Core Text with a UIView?

A

Override [UIView drawRect:] and use Core Text there.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What include file is needed to use Core Text?

A

The file “CoreText/CoreText.h”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What must I always do when using functions that start with “Create”?

A

Call CFRelease() on their references before returning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

With Core Text, what is used instead of NSString?

A

NSAttributedString

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Core Text works directly with _____________, also known as _____________.

A

Core Graphics, Quartz.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Core Text needs Quartz to ______________.

A

actually draw the glyphs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The Core Text interface is in what programming language?

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

NSAttributedString* is toll-free bridged with ___________ and so…

A

CFAttributedStringRef; the two can be used interchangeably in function calls.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

At the top of the Core Text class hierarchy is ________

A

CTFramesetter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

With an attributed string and a graphics path, CTFramesetter will generate ______________.

A

One or more frames (CTFrame objects).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Each CTFrame object represents ____________.

A

one paragraph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The CTFrame object contains one or more _____________.

A

CTLine objects, each of which is a line of text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A CTLine object contains one or more _________

A

CTRun objects, which are “glyph runs”, a series of glyphs with the same attributes and direction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly