nsIFontList

IID:702909c6-1dd2-11b2-b833-8a740f643539
Inherits From:nsISupports

The nsIFontList interface provides an application the necessary information so that the user can select the font to use as the default style sheet. This is used if the style sheet is missing or does not specify a font.

Font lists are specified per language group.

This interface is implemented by the following components:


Methods

nsISimpleEnumerator availableFonts ( PRUnichar* langGroup , PRUnichar* fontType )

nsISimpleEnumerator availableFonts ( PRUnichar* langGroup , PRUnichar* fontType )

Get the list of available fonts for a language group and for use as the given CSS generic font.

Arguments:
langGroup: limits the fonts to fonts in a language group; eg: x-western (American/Western European), ar (Arabic), el (Greek), he (Hebrew), ja (Japanese), ko (Korean), th (Thai), tr (Turkish), x-baltic (Baltic), x-central-euro (Eastern European), x-cyrillic (Russian), zh-CN (China), zh-TW (Taiwan)
fontType: limits the fonts to the fonts with this CSS generic font type; eg: serif, sans-serif, cursive, fantasy, monospace.
Returns:
a simple enumerator of the available fonts for a language group / generic type. These strings are the text supplied by the operating system's font system.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com