ImmSetCompositionFontA function

Sets the logical font to use to display characters in the composition window.

Syntax

BOOL ImmSetCompositionFontA(
  IN         HIMC,
  LPLOGFONTA lplf
);

Parameters

HIMC

Handle to the input context.

lplf

Pointer to a LOGFONT structure containing the font information to set.

Return Value

Returns a nonzero value if successful, or 0 otherwise.

Remarks

This function causes a IMN_SETCOMPOSITIONFONT command to be sent to an application. Even if the 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.

Requirements

   
Minimum supported client Windows XP [desktop apps only],East Asian language support installed.
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imm.h (include Immdev.h, Windows.h)
Library Imm32.lib
DLL Imm32.dll

See Also

IMN_SETCOMPOSITIONFONT

Input Method Manager

Input Method Manager Functions