LispWorks CAPI User Guide > 12 Graphics Ports > 12.7 Portable font descriptions

NextPrevUpTopContentsIndex

12.7.2 Fonts

Fonts are the objects which are actually used in drawing operations. They are made by a font lookup operation on a pane, using a font description as a pattern.

Examples of font lookup operations are find-best-font and find-matching-fonts .

Once a font object is resolved you can read its properties such as height, width and average width. The functions get-font-height , get-font-width and get-font-average-width and so on need a pane that is on the screen. In general, you need to call these functions within a display-callback , or possibly a create-callback . See capi:interface for more information about these initargs.


LispWorks CAPI User Guide (Windows version) - 22 Dec 2009

NextPrevUpTopContentsIndex