All Manuals > CAPI User Guide > 13 Graphics Ports > 13.8 Portable font descriptions


13.8.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 has been created. In general, you need to call these functions within capi:interface-display , or a display-callback or possibly a create-callback . See capi:interface for more information about these initargs.

CAPI User Guide (Macintosh version) - 30 Aug 2011