Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## font

Arguments: standard-object

Returns the current value of the font property for standard-object. This property determines which font to use when displaying text on the object. A font is created using make-font, make-font-ex, or ask-user-for-font.

The value should be a font object, as returned by make-font-ex, make-font, or ask-user-for-font.

font is a property of `graphical-stream` (which includes all windows as well as bitmap-streams and printer streams) and `dialog-item` (which includes all widgets), as well as `outline-item` and `grid-column`. font is not a property of menus, at least on the Windows platform, because Windows uses a single Control Panel font for all menus.

(setf font) can take an additional optional argument called set-line-height-too. If this argument is true, then (setf font) will set the current line-height of the window or widget to be equal to the font-height of its new font. This is normally desirable so that printing a newline to the stream will position the next line of text appropriately, so this argument defaults to `t`. The default could be overridden, though, with a form such as `(setf (font my-window nil)(make-font-ex nil "Arial" 18))`.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version