mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
gdiplus: Stub GdipGetFontHeightGivenDPI.
This commit is contained in:
parent
f6da80297d
commit
25e4fd7d3c
@ -308,6 +308,31 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont *font, GpFont **cloneFont)
|
||||
return Ok;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* GdipGetFontHeightGivenDPI [GDIPLUS.@]
|
||||
* PARAMS
|
||||
* font [I] Font to retrieve DPI from
|
||||
* dpi [I] DPI to assume
|
||||
* height [O] Return value
|
||||
*
|
||||
* RETURNS
|
||||
* SUCCESS: Ok
|
||||
* FAILURE: InvalidParameter if font or height is NULL
|
||||
*
|
||||
* NOTES
|
||||
* According to MSDN, the result is (lineSpacing)*(fontSize / emHeight)*dpi
|
||||
* (for anything other than unit Pixel)
|
||||
*/
|
||||
GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi, REAL *height)
|
||||
{
|
||||
if (!(font && height)) return InvalidParameter;
|
||||
|
||||
FIXME("%p (%s), %f, %p\n)", font,
|
||||
debugstr_w(font->lfw.lfFaceName), dpi, height);
|
||||
|
||||
return NotImplemented;
|
||||
}
|
||||
|
||||
/* Borrowed from GDI32 */
|
||||
static INT CALLBACK is_font_installed_proc(const LOGFONTW *elf,
|
||||
const TEXTMETRICW *ntm, DWORD type, LPARAM lParam)
|
||||
|
@ -268,7 +268,7 @@
|
||||
@ stub GdipGetFontCollectionFamilyCount
|
||||
@ stub GdipGetFontCollectionFamilyList
|
||||
@ stub GdipGetFontHeight
|
||||
@ stub GdipGetFontHeightGivenDPI
|
||||
@ stdcall GdipGetFontHeightGivenDPI(ptr long ptr)
|
||||
@ stdcall GdipGetFontSize(ptr ptr)
|
||||
@ stub GdipGetFontStyle
|
||||
@ stdcall GdipGetFontUnit(ptr ptr)
|
||||
|
@ -372,6 +372,7 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
|
||||
GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**);
|
||||
GpStatus WINGDIPAPI GdipGetFontUnit(GpFont*, Unit*);
|
||||
GpStatus WINGDIPAPI GdipGetFontSize(GpFont*, REAL*);
|
||||
GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont*, REAL, REAL*);
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
|
||||
GpFontCollection*, GpFontFamily**);
|
||||
|
Loading…
Reference in New Issue
Block a user