Page 87 Table of Contents Index Page 89
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



CHAPTER 11. TEXT STYLES

An instantiable class that implements text styles. It is a subclass of text-style. This is the
class that make-text-style instantiates. Members of this class are immutable.

The interface to text styles is as follows:

=> make-text-style family face size [Function]
Returns an object of class standard-text-style with a family of family, a face of face, and a
size of size.

family is one of :fix, :serif, :sans-serif, or nil.

face is one of :roman, :bold, :italic, (:bold :italic), or nil.

size is a real number representing the size in printer's points, one of the logical sizes (:normal,
:tiny, :very-small, :small, :large, :very-large, :huge), a relative size (:smaller or :larger),
or nil.

Implementations are permitted to extend legal values for family, face, and size.

Minor issue: Need to describe what family, face, size mean in terms of visual appearance. This
should also be reconciled with the ISO description of the attributes of a "text style". | York,
SWM

=> *default-text-style* [Constant]
The default text style used on a CLIM medium if no text style it explicitly specified for the
medium when it it created. This must be a fully merged text style.

=> *undefined-text-style* [Constant]
The text style that is used as a fallback if no mapping exists for some other text style when
some text is about to be rendered on a display device (via write-string and draw-string*, for
example). This text style be fully merged, and it must have a mapping for all display devices.

11.1.1 Text Style Protocol and Text Style Suboptions

The following generic functions comprise the text style protocol. All subclasses of text-style
must implement methods for each of these generic functions.

Each of the suboptions described below has a corresponding reader accessor that can be used to
extract a particular component from a text style.

=> text-style-components text-style [Generic Function]
Returns the components of the text style text-style as three values, the family, face, and size.

=> :text-family [Option]
=> text-style-family text-style [Generic Function]


Page 87 Table of Contents Index Page 89
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