IMLangFontLink2::GetScriptFontInfo method

Gets the font information for the specified script.

Syntax

HRESULT GetScriptFontInfo(
  [in]      SCRIPT_ID      sid,
  [in]      DWORD          dwFlags,
  [in, out] UINT           *puiFonts,
  [out]     SCRIPTFONTINFO *pScriptFont
);

Parameters

sid [in]

A value from the SCRIPTCONTF enumeration that specifies the SCRIPT_ID to get font information for.

dwFlags [in]

An unsigned long integer value that specifies one of the following flags.

SCRIPTCONTF_FIXED_FONT

Enumerate fixed-width fonts.

SCRIPTCONTF_PROPORTIONAL_FONT

Enumerate variable-width fonts.

puiFonts [in, out]

Th address of unsigned integer value that contains the size of the array in pScriptFont.

pScriptFont [out]

An array of SCRIPTFONTINFO structures that contain the requested font information for the specified SCRIPT_ID. Set to NULL to predetermine how many fonts are enumerated; the total count is returned in puiFonts.

Return value

Returns S_OK if successful, or E_FAIL otherwise.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll

See also

IMLangFontLink2