Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 4 - Font Manager / Using the Font Manager


Favoring Outline or Bitmapped Fonts

When a document uses a font that is available as both an outline font and a bitmapped font, the Font Manager has to decide which kind of font to use. Its default behavior is to use the bitmapped font when your application opens the document. This behavior avoids problems with documents that were created on a computer system on which outline fonts were not available. See "How the Font Manager Responds to a Font Request" on page 4-17 for more information.

You can change this default behavior by calling the SetOutlinePreferred procedure. If you call SetOutlinePreferred with the outlinePreferred parameter set
to TRUE, the Font Manager chooses outline fonts over bitmapped fonts when both
are available.

The GetOutlinePreferred function returns a Boolean value that indicates which kind of font the Font Manager has been set to favor. You should call this function and save the value that it returns with your documents. Then, when the user opens a document in your application, you can call SetOutlinePreferred with that value to ensure that the same fonts are used.

If only one kind of font is available, the Font Manager chooses that kind of font to use in the document, no matter which kind of font is favored. You can determine whether the font being used in the current graphics port is an outline font by using the IsOutline function, which is described on page 4-57.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996