Important: The information in this document is obsolete and should not be used for new development.
RealFont
TheRealFontfunction 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
TheRealFontfunction returnsTRUEif the requested size of a font is available.RealFontfirst checks for a bitmapped font from the specified family. If one is not available,RealFontchecks next for an outline font. If neither kind of font is available,RealFontreturnsFALSE.If an outline font exists for the requested font family,
RealFontnormally 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 theRealFontfunction 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 theRealFontfunction is
Trap macro _RealFont