Functions


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.

Disabling Font Scaling

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

Enabling Fractional Glyph Widths

SetFractEnable Enables or disables fractional glyph widths.

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.

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.

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.

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.

Initializing the Font Manager

InitFonts Initializes the Font Manager.

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.

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.

Miscellaneous

AntiTextGetApplicationAware
AntiTextGetEnabled
AntiTextIsAntiAliased
AntiTextSetApplicationAware
AntiTextSetEnabled
DisposeFMFontCallbackFilterUPP
DisposeFMFontFamilyCallbackFilterUPP
FMActivateFonts
FMCreateFontFamilyInstanceIterator
FMCreateFontFamilyIterator
FMCreateFontIterator
FMDeactivateFonts
FMDisposeFontFamilyInstanceIterator
FMDisposeFontFamilyIterator
FMDisposeFontIterator
FMGetFontContainer
FMGetFontFamilyFromName
FMGetFontFamilyGeneration
FMGetFontFamilyInstanceFromFont
FMGetFontFamilyName
FMGetFontFamilyTextEncoding
FMGetFontFormat
FMGetFontFromFontFamilyInstance
FMGetFontGeneration
FMGetFontTable
FMGetFontTableDirectory
FMGetGeneration
FMGetNextFont
FMGetNextFontFamily
FMGetNextFontFamilyInstance
FMResetFontFamilyInstanceIterator
FMResetFontFamilyIterator
FMResetFontIterator
FetchFontInfo
InvokeFMFontCallbackFilterUPP
InvokeFMFontFamilyCallbackFilterUPP
IsAntiAliasedTextEnabled
NewFMFontCallbackFilterUPP
NewFMFontFamilyCallbackFilterUPP
QDTextBounds
SetAntiAliasedTextEnabled
getfnum
getfontname

© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)