nsIFontEnumerator
Methods
EnumerateAllFonts(aCount, 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
EnumerateFonts(aLangGroup, aGeneric, aCount, 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
HaveFontFor(aLangGroup, aResult)
Parameters
aLangGroup |
language group
|
Returns
bool do we have a font for this language group
|
getDefaultFont(aLangGroup, aGeneric)
Parameters
aLangGroup |
language group
|
aGeneric |
CSS generic font
|
Returns
suggested default font for this language group and generic family
|
updateFontList()
update the global font list
return true if font list is changed
getStandardFamilyName(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
|