Important: The information in this document is obsolete and should not be used for new development.
HMGetFont
To get information about the font that is currently used to display text in help balloons, use theHMGetFont
function.
FUNCTION HMGetFont (VAR font: Integer): OSErr;
font
- The global font number used to display text in help balloons.
DESCRIPTION
TheHMGetFont
function returns in itsfont
parameter the global font number used to display text in help balloons.HMGetFont
returns this information only for Pascal strings stored in the help resources themselves and for strings from'STR#'
and'STR '
resources; it does not return information about text in'PICT'
or styled text resources, or in handles to either of these resources.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theHMGetFont
function are
Trap macro Selector _Pack14 $020A RESULT CODES
noErr 0 No error memFullErr -108 Not enough room in heap zone SEE ALSO
The chapter "TextEdit" in Inside Macintosh: Text describes global font numbers.