Font Manager Functions


Initializing the Font Manager
InitFonts Initializes the Font Manager.

Getting Font Information
GetFNum Gets the font family ID for a specified font family name.
GetFontName Gets the name of a font family that has a specified family ID number.
RealFont Determines whether a font is available or is intended for use in a specified size.

Using the Current, System, and Application Fonts
GetAppFont Returns the font family ID of the current application font.
GetDefFontSize Determines the default size of the system font.
GetSysFont Determines the font family ID of the current system font.

Getting the Characteristics of a Font
FontMetrics Gets fractional measurements for the font, size, and style specified in the current graphics port.
OutlineMetrics Gets font measurements for a block of text to be drawn in a specified outline font.

Enabling Fractional Glyph Widths
SetFractEnable Enables or disables fractional glyph widths.

Disabling Font Scaling
SetFScaleDisable Enables or disables the computation of font scaling factors by the Font Manager for bitmapped glyphs.

Favoring Outline Fonts Over Bitmapped Fonts
GetOutlinePreferred Determines whether outline or bitmapped fonts are to be favored when the Font Manager receives a font request.
IsOutline Determines whether the Font Manager would choose an outline font for the current graphics port to meet the specified scaling factors.
SetOutlinePreferred Sets the preference for whether to use bitmapped or outline fonts when both kinds of fonts are available.

Scaling Outline Fonts
GetPreserveGlyph Determines whether the Font Manager preserves the shapes of glyphs from outline fonts.
SetPreserveGlyph Temporarily changes the default behavior of the Font Manager, so that it does not scale oversized glyphs.

Accessing Information About a Font
FMSwapFont Returns a handle to a font and information about that font. This function is used by QuickDraw and other parts of the system software to access font handles.

Handling Fonts in Memory
FlushFonts Erases the Font Manager’s memory caches.
SetFontLock Makes the most recently used font unpurgeable. You can use this function when you want a font to remain in memory for the sake of efficiency.

Iterating Through and Searching for Font Data
FMCreateFontFamilyIterator Creates a font family iterator that your application can use to access font family objects.
FMDisposeFontFamilyIterator Disposes of the contents of a font family iterator.
FMResetFontFamilyIterator Resets the options and positional state of a font family iterator.
FMGetNextFontFamily Gets the next font family reference.
FMCreateFontIterator Creates an iterator that you application can use to access font objects.
FMDisposeFontIterator Disposes of a font iterator.
FMResetFontIterator Resets the options and positional state of a font iterator.
FMGetNextFont Accesses the next font object.

Accessing Font Family Objects
FMCreateFontFamilyInstanceIterator Creates a font family instance iterator that your application can use to access the member fonts associated with a font family.
FMDisposeFontFamilyInstanceIterator Disposes of a font family instance iterator.
FMResetFontFamilyInstanceIterator Resets the options for and positional state of a font family instance iterator.
FMGetNextFontFamilyInstance Gets the next instance associated with a font family reference.
FMGetFontFamilyFromName Returns the font family reference associated with a standard QuickDraw name.
FMGetFontFamilyName Gets the standard QuickDraw font name associated with a font family reference.
FMGetFontFamilyTextEncoding Obtains the text encoding used by a font family.
FMGetFontFamilyGeneration Gets the generation of a font family.

Accessing Font Objects
FMGetFontFormat Gets the format identifier of a font.
FMGetFontTableDirectory Gets the table directory for a font.
FMGetFontTable Retrieves all or part of a data table for a font.
FMGetFontGeneration Gets the generation of a font.
FMGetFontContainer Gets the file that contains data for a font.

Converting Font Data
FMGetFontFromFontFamilyInstance Gets the font reference associated with a standard QuickDraw style and font family.
FMGetFontFamilyInstanceFromFont Finds the font family reference and standard QuickDraw style associated with a font.

Activating and Deactivating Fonts
FMActivateFonts Activates one or more fonts.
FMDeactivateFonts Deactivates one or more fonts.
FMGetGeneration Retrieves the value of the generation seed.

Miscellaneous
AntiTextGetApplicationAware
AntiTextGetEnabled
AntiTextIsAntiAliased
AntiTextSetApplicationAware
AntiTextSetEnabled
FetchFontInfo
getfnum
getfontname
IsAntiAliasedTextEnabled
QDTextBounds
SetAntiAliasedTextEnabled


© 2001 Apple Computer, Inc. (Last Updated July 21, 2001)