Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIFontList Interface Reference

The nsIFontList interface provides an application the necessary information so that the user can select the font to use as the default style sheet. More...

import "nsIFontList.idl";

Inheritance diagram for nsIFontList:
Inheritance graph
[legend]
Collaboration diagram for nsIFontList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

nsISimpleEnumerator availableFonts (in wstring aLangGroup, in wstring aFontType)
 Get the list of available fonts for a language group and for use as the given CSS generic font.

Detailed Description

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.

Definition at line 53 of file nsIFontList.idl.


Member Function Documentation

nsISimpleEnumerator nsIFontList::availableFonts ( in wstring  aLangGroup,
in wstring  aFontType 
)

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

Parameters:
aLangGrouplimits 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)
aFontTypelimits 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.

The documentation for this interface was generated from the following file: