Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

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