WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIFontEnumerator

IID:a6cf9114-15b3-11d2-932e-00805f8add32
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void EnumerateAllFonts ( out PRUint32 count , out arrayof PRUnichar* result ) void EnumerateFonts ( char* langGroup , char* generic , out PRUint32 count , out arrayof PRUnichar* result ) PRUnichar* getDefaultFont ( char* langGroup , char* generic ) void HaveFontFor ( char* langGroup , out PRBool result ) PRBool updateFontList ( )

void EnumerateAllFonts ( out PRUint32 count , out arrayof PRUnichar* result )

Return a sorted array of the names of all installed fonts.

Arguments:
count: returns number of names returned
result: returns array of names
Returns:
void

void EnumerateFonts ( char* langGroup , char* generic , out PRUint32 count , out arrayof PRUnichar* result )

Return a sorted array of names of fonts that support the given language group and are suitable for use as the given CSS generic font.

Arguments:
langGroup: language group
generic: CSS generic font
count: returns number of names returned
result: returns array of names
Returns:
void

PRUnichar* getDefaultFont ( char* langGroup , char* generic )

Arguments:
langGroup: language group
generic: CSS generic font
Returns:
suggested default font for this language group and generic family

void HaveFontFor ( char* langGroup , out PRBool result )

Arguments:
langGroup: language group
result
Returns:
bool do we have a font for this language group

PRBool updateFontList ( )

Update the global font list return true if font list is changed

Reference documentation is generated from Mozilla's source.