GetFontInfo method

Enables a behavior to determine the font settings that MSHTML uses to render an element.

Syntax

HRESULT retVal = object.GetFontInfo(plf);

Parameters

  • plf [out]
    Type: LOGFONTW

    A pointer to a LOGFONT structure, which defines the attributes for the font.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Because font linking might be used in the host application, the font returned by this method might not be the actual font that is rendered in the content of the element behavior. However, the LOGFONT attributes returned by this method contain the font information that MSHTML uses to render the element content.

See also

Reference

IMLangFontLink

IMLangFontLink2