Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 4 - Font Manager / Font Manager Reference
Routines / Getting Font Information


RealFont

The RealFont function determines whether a font is available or is intended for use in a specified size.

FUNCTION RealFont (fontNum: Integer; size: Integer): Boolean;
fontNum
The font family ID.
size
The font size requested.
DESCRIPTION
The RealFont function returns TRUE if the requested size of a font is available. RealFont first checks for a bitmapped font from the specified family. If one is not available, RealFont checks next for an outline font. If neither kind of font is available, RealFont returns FALSE.

If an outline font exists for the requested font family, RealFont normally considers the font to be available in any requested size; however, the font designer can include instructions in the font that outlines should not be used at certain point sizes, in which case the RealFont function will consider the font unavailable and return FALSE. The Font Manager determines whether the size is valid by testing the value of the smallest readable size element of the font family header table, which is described in "The Font Header Table," beginning on page 4-74.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro for the RealFont function is
Trap macro
_RealFont


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996