Share via


IMLangFontLink2::GetFontUnicodeRanges

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method retrieves information about which Unicode characters are supported by a font.

Syntax

HRESULT GetFontUnicodeRanges( 
  HDC hDC,
  UINT* puiRanges,
  UNICODERANGE* pUranges
);

Parameters

  • hDC
    [in] Handle to the device context.
  • puiRanges
    [in, out] Pointer to an unsigned integer value that specifies the number of elements in the array pointed to by the pUranges parameter.
  • pUranges
    [out] Pointer to the UNICODERANGE structure that contains the Unicode range information. If this parameter is NULL, the function returns the number of font Unicode ranges in the value pointed to by the puiRanges parameter.

Return Value

Returns S_OK if successful or E_FAIL otherwise.

Remarks

This method returns S_OK if puiRanges is not NULL and it returns a pointer to the font's UNICODERANGE structure. If puiRanges is NULL, this method returns S_OK if the method returns the number of font Unicode ranges in puiRanges.

Requirements

Header mlang.h, mlang.idl
Library mlang.dll
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later