gdiplus: Implemented GdipGetLogFontA.
This commit is contained in:
parent
9f0edc5e7c
commit
c17266de9e
|
@ -373,6 +373,29 @@ GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
|
||||||
return Ok;
|
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.@]
|
* GdipGetLogFontW [GDIPLUS.@]
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -311,7 +311,7 @@
|
||||||
@ stdcall GdipGetLineSpacing(ptr long ptr)
|
@ stdcall GdipGetLineSpacing(ptr long ptr)
|
||||||
@ stub GdipGetLineTransform
|
@ stub GdipGetLineTransform
|
||||||
@ stdcall GdipGetLineWrapMode(ptr ptr)
|
@ stdcall GdipGetLineWrapMode(ptr ptr)
|
||||||
@ stub GdipGetLogFontA
|
@ stdcall GdipGetLogFontA(ptr ptr ptr)
|
||||||
@ stdcall GdipGetLogFontW(ptr ptr ptr)
|
@ stdcall GdipGetLogFontW(ptr ptr ptr)
|
||||||
@ stdcall GdipGetMatrixElements(ptr ptr)
|
@ stdcall GdipGetMatrixElements(ptr ptr)
|
||||||
@ stub GdipGetMetafileDownLevelRasterizationLimit
|
@ stub GdipGetMetafileDownLevelRasterizationLimit
|
||||||
|
|
Loading…
Reference in New Issue