Creates a font to output the characters from the given set of code pages.
Syntax
HRESULT MapFont(
    HDC hDC, 
    DWORD dwCodePages, 
    HFONT hSrcFont, 
    HFONT *phDestFont
);
Parameters
- hDC
 - [in] Handle to a device context.
 - dwCodePages
 - [in] Unsigned long integer value that specifies the source set of code pages.
 - hSrcFont
 - [in] Handle to the source font object from which phDestFont will be inherited.
 - phDestFont
 - [out] Address of a font object where the created font will be returned.
 
Return Value
Returns S_OK if successful, or an error code 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 MapFont, it should call IMLangFontLink::ReleaseFont to remove the font object from the cache.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0 
See Also