Prev Next

ImmSetCompositionFont info  Overview  Group

The ImmSetCompositionFont function sets the logical font to be used to display characters in the composition window.

BOOL ImmSetCompositionFont(

    HIMC hIMC,

    LPLOGFONT lplf

   );

Parameters

hIMC
Handle to the input context.
lplf
Pointer to the LOGFONT structure containing the font information to set.

Return Values

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero.

Remarks

Even if an application never uses the composition window, it must set the appropriate font to ensure that characters are displayed properly. This is especially true for vertical writing.

This function causes a IMN_SETCOMPOSITIONFONT message to be sent to the application.

See Also

IMN_SETCOMPOSITIONFONT, LOGFONT