Partager via


IMLangFontLink::MapFont

This method creates a font to output the characters from the given set of code pages.

HRESULT MapFont( 
  HDC hDC,
  DWORD dwCodePages,
  HFONT hSrcFont,
  HFONT* phDestFont
);

Parameters

  • hDC
    [in] Handle to a device context.
  • dwCodePages
    [in] Specifies the source set of code pages.
  • hSrcFont
    [in] Handle to the source font object from which the font object pointed to by the phDestFont parameter will be inherited.
  • phDestFont
    [out] Pointer to a font object where the created font will be returned.

Return Values

Returns S_OK if successful or an error value otherwise.

Remarks

MLang implements a font cache to store the custom fonts created by this method. When a client has finished using a font created by this method, it should call to remove the font object from the cache.

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.