IMLangFontLink::GetFontCo...     IMLangFontLink::ReleaseFo...     IMLangFontLink Interface    
Web Workshop (Miscellaneous)

IMLangFontLink::MapFont Method


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

IMLangFontLink::ResetFontMapping



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.