Using the Font Manager
Using the Font Manager
The Font Manager describes how you can use fonts in general and TrueType
fonts specifically. There are certain guidelines you should consider when
integrating fonts into your application-for instance, how to show which point
size is currently selected and how to make sure that the font used in a document
is the same on different computer systems. If you want to take best advantage
of TrueType fonts, your application should be aware of how TrueType glyphs
may behave differently than bitmapped glyphs.
To determine whether your application can use TrueType fonts on a user's
computer system, call the Gestalt function with the selector
gestaltFontMgrAttr. If the Gestalt function returns noErr and bit 0 of the
response ( gestaltOutlineFonts) is 1, outline fonts are present in the system
software. (See the Compatibility Guidelines for more information on the
Gestalt function.)