Interface nsIFontEnumeratorType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Return a promise that resolves to a sorted array of the names of all installed fonts.

    Returns

    Promise that resolves to Array

    Returns any

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

    Returns

    Promise that resolves to Array

    Parameters

    • aLangGroup: string

      language group

    • aGeneric: string

      CSS generic font

    Returns any

  • Returns

    bool do we have a font for this language group

    Parameters

    • aLangGroup: string

      language group

    • aResult: boolean

    Returns void

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Returns

    suggested default font for this language group and generic family

    Parameters

    • aLangGroup: string

      language group

    • aGeneric: string

      CSS generic font

    Returns wstring

  • get the standard family name on the system from given family

    Returns

    the standard family name on the system, if given name does not exist, returns empty string

    Parameters

    • aName: wstring

      family name which may be alias

    Returns wstring

Generated using TypeDoc