Important: The information in this document is obsolete and should not be used for new development.
Using the Font Manager
You can use the Font Manager to take full advantage of the information that fonts contain about their widths and scaling possibilities and present this information to the user. The Font Manager provides routines that give your application control over selecting fonts and measuring the individual glyphs of the font. It also helps you to handle the coexistence of bitmapped and outline versions of fonts.This section describes how to use the capabilities of the Font Manager in your program to handle tasks, including
To initialize the Font Manager, you must call the
- initializing the Font Manager
- adding font names and sizes to the Font menu
- storing font names in your documents
- getting font measurement information
- setting the Font Manager to favor outline or bitmapped fonts
- preserving or scaling the shapes of glyphs
- using the font tables
- getting the system or application font ID
- enabling and disabling font scaling and fractional width use
InitFonts
procedure. Before callingInitFonts
, you need to initialize QuickDraw by calling theInitGraf
procedure, which is described in Inside Macintosh: Imaging.
Subtopics
- Adding Font Sizes and Names to the Menu
- Storing a Font Name in a Document
- Getting Font Measurement Information
- Favoring Outline or Bitmapped Fonts
- Preserving the Shapes of Glyphs
- Using Width Tables
- Getting the System or Application Font ID
- Using Fractional Glyph Widths and Font Scaling