Page 88 | Table of Contents | Index | Page 90 |
Chapters | |||
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30 A, B, C, D, E |
Minor issue: Need to describe face-merging properly. For example, merging a bold face with
an italic one can result in a bold-italic face. | SWM
=> text-style-ascent text-style port [Generic Function]
=> text-style-descent text-style port [Generic Function]
=> text-style-height text-style port [Generic Function]
=> text-style-width text-style port [Generic Function]
Returns the ascent, descent, height, and width (respectively) of the font corresponding to the
text style text-style as it would be rendered on any medium on the port port. text-style must be
a fully specified text style.
The ascent of a font is the distance between the top of the tallest character in that font and the
font's baseline. The descent of a font is the distance between the baseline and the bottom of the
lowest descending character (usually "g", "p", "q", or "y"). The height of a font is the sum of
the ascent and the descent of the font. The width of a font is the width of some representative
character in the font.
The methods for these generic functions will typically specialize both the text-style and port
arguments. Implementations should also provide "trampoline" for these generic function for
Page 88 | Table of Contents | Index | Page 90 |
Chapters | |||
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30 A, B, C, D, E |