ImmSetCompositionFont function

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

Syntax


BOOL ImmSetCompositionFont(
  _In_  HIMC hIMC,
  _In_  LPLOGFONT lplf
);

Parameters

hIMC [in]

Handle to the input context.

lplf [in]

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]

Minimum supported server

Windows Server 2003 [desktop apps only]

Version

East Asian language support installed.

Header

Imm.h (include Windows.h)

Library

Imm32.lib

DLL

Imm32.dll

Unicode and ANSI names

ImmSetCompositionFontW (Unicode) and ImmSetCompositionFontA (ANSI)

See also

Input Method Manager
Input Method Manager Functions
IMN_SETCOMPOSITIONFONT

 

 

Community Additions

ADD
Show:
© 2014 Microsoft