Commit fd8829fb authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

imm: Implement GetCompositionFont.

parent c56389ea
...@@ -917,9 +917,19 @@ BOOL WINAPI ImmGetCandidateWindow( ...@@ -917,9 +917,19 @@ BOOL WINAPI ImmGetCandidateWindow(
*/ */
BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf) BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
{ {
FIXME("(%p, %p): stub\n", hIMC, lplf); LOGFONTW lfW;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); BOOL rc;
return FALSE;
TRACE("(%p, %p):\n", hIMC, lplf);
rc = ImmGetCompositionFontW(hIMC,&lfW);
if (rc)
{
memcpy(lplf,&lfW,sizeof(LOGFONTA));
WideCharToMultiByte(CP_ACP, 0, lfW.lfFaceName, -1, lplf->lfFaceName,
LF_FACESIZE, NULL, NULL);
}
return rc;
} }
/*********************************************************************** /***********************************************************************
...@@ -927,9 +937,16 @@ BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf) ...@@ -927,9 +937,16 @@ BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
*/ */
BOOL WINAPI ImmGetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf) BOOL WINAPI ImmGetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
{ {
FIXME("(%p, %p): stub\n", hIMC, lplf); InputContextData *data = (InputContextData*)hIMC;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE; TRACE("(%p, %p):\n", hIMC, lplf);
if (!data)
return FALSE;
*lplf = data->IMC.lfFont.W;
return TRUE;
} }
/*********************************************************************** /***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment