Public Member Functions

nsIFontEnumerator Interface Reference

import "nsIFontEnumerator.idl";

List of all members.

Public Member Functions

void EnumerateAllFonts (out PRUint32 aCount,[retval, array, size_is(aCount)] out wstring aResult)
 Return a sorted array of the names of all installed fonts.
void EnumerateFonts (in string aLangGroup, in string aGeneric, out PRUint32 aCount,[retval, array, size_is(aCount)] out wstring aResult)
 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.
void HaveFontFor (in string aLangGroup,[retval] out boolean aResult)
wstring getDefaultFont (in string aLangGroup, in string aGeneric)
boolean updateFontList ()
 update the global font list return true if font list is changed
wstring getStandardFamilyName (in wstring aName)
 get the standard family name on the system from given family

Member Function Documentation

void nsIFontEnumerator::EnumerateAllFonts ( out PRUint32  aCount,
[retval, array, size_is(aCount)] out wstring  aResult 
)

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

Parameters:
aCount returns number of names returned
aResult returns array of names
Returns:
void
void nsIFontEnumerator::EnumerateFonts ( in string  aLangGroup,
in string  aGeneric,
out PRUint32  aCount,
[retval, array, size_is(aCount)] out wstring  aResult 
)

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.

Parameters:
aLangGroup language group
aGeneric CSS generic font
aCount returns number of names returned
aResult returns array of names
Returns:
void
wstring nsIFontEnumerator::getDefaultFont ( in string  aLangGroup,
in string  aGeneric 
)
Parameters:
aLangGroup language group
aGeneric CSS generic font
Returns:
suggested default font for this language group and generic family
wstring nsIFontEnumerator::getStandardFamilyName ( in wstring  aName  ) 

get the standard family name on the system from given family

Parameters:
aName family name which may be alias
Returns:
the standard family name on the system, if given name does not exist, returns empty string
void nsIFontEnumerator::HaveFontFor ( in string  aLangGroup,
[retval] out boolean  aResult 
)
Parameters:
aLangGroup language group
Returns:
bool do we have a font for this language group
boolean nsIFontEnumerator::updateFontList (  ) 

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


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