Partager via


IMLangFontLink2::GetFontUnicodeRanges

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

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 Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Mlang.h, Mlang.idl.
Link Library: Mlang.dll.

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.