Freigeben über


IMLangFontLink::MapFont (Windows CE 5.0)

Send Feedback

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

HRESULTMapFont(HDChDC,DWORDdwCodePages,HFONThSrcFont,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.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.