## 6 Fonts, Operations, Colors ¶

`(window-set-font w font)`

The font symbols that are currently defined are `courier-bold-12`, `8x10`, and `9x15` . The global variable `window-fonts*` contains correspondences between font symbols and font strings. A font string may also be specified instead of a font symbol.

`(window-string-width w s)`
`(window-string-extents w s)`
These give the width and the vertical size `(ascent descent)` in pixels of the specified string `s` using the font of the specified window. `s` is stringified if necessary.

Operations on a window other than direct drawing are performed by setting a condition for the window, performing the operation, and then unsetting the condition with `window-unset`. `window-reset` will reset a window to its “standard” setting; it is useful primarily for cases in which a program bug causes window settings to be in an undesired state.

`(window-set-xor w)`
`(window-set-erase w)`
`(window-set-copy w)`
`(window-set-invert w)`
`(window-unset w)`
`(window-reset w)`
`(window-set-line-width w width)`
`(window-set-line-attr w width &optional line-style cap-style join-style)`
`(window-std-line-attr w)`
`(window-foreground w)`
`(window-set-foreground w fg-color)`
`(window-background w)`
`(window-set-background w bg-color)`