Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Unrevised from 9.0 to 10.0.
9.0 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 9.0 page.
Created 2015.5.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Unrevised from 9.0 to 10.0.
9.0 version