Important: The information in this document is obsolete and should not be used for new development.
RealFont
TheRealFont
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
TheRealFont
function returnsTRUE
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
returnsFALSE
.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 theRealFont
function will consider the font unavailable and returnFALSE
. 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 theRealFont
function is
Trap macro _RealFont