gdiplus: Implemented GdipGetLogFontA.

This commit is contained in:
Nikolay Sivov 2009-02-04 11:57:04 +03:00 committed by Alexandre Julliard
parent 9f0edc5e7c
commit c17266de9e
2 changed files with 24 additions and 1 deletions

View File

@ -373,6 +373,29 @@ GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
return Ok;
}
/*******************************************************************************
* GdipGetLogFontA [GDIPLUS.@]
*/
GpStatus WINGDIPAPI GdipGetLogFontA(GpFont *font, GpGraphics *graphics,
LOGFONTA *lfa)
{
GpStatus status;
LOGFONTW lfw;
TRACE("(%p, %p, %p)\n", font, graphics, lfa);
status = GdipGetLogFontW(font, graphics, &lfw);
if(status != Ok)
return status;
memcpy(lfa, &lfw, FIELD_OFFSET(LOGFONTA,lfFaceName) );
if(!MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName, LF_FACESIZE))
return GenericError;
return Ok;
}
/*******************************************************************************
* GdipGetLogFontW [GDIPLUS.@]
*/

View File

@ -311,7 +311,7 @@
@ stdcall GdipGetLineSpacing(ptr long ptr)
@ stub GdipGetLineTransform
@ stdcall GdipGetLineWrapMode(ptr ptr)
@ stub GdipGetLogFontA
@ stdcall GdipGetLogFontA(ptr ptr ptr)
@ stdcall GdipGetLogFontW(ptr ptr ptr)
@ stdcall GdipGetMatrixElements(ptr ptr)
@ stub GdipGetMetafileDownLevelRasterizationLimit