Commit 25e4fd7d authored by Adam Petaccia's avatar Adam Petaccia Committed by Alexandre Julliard

gdiplus: Stub GdipGetFontHeightGivenDPI.

parent f6da8029
...@@ -308,6 +308,31 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont *font, GpFont **cloneFont) ...@@ -308,6 +308,31 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont *font, GpFont **cloneFont)
return Ok; 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 */ /* Borrowed from GDI32 */
static INT CALLBACK is_font_installed_proc(const LOGFONTW *elf, static INT CALLBACK is_font_installed_proc(const LOGFONTW *elf,
const TEXTMETRICW *ntm, DWORD type, LPARAM lParam) const TEXTMETRICW *ntm, DWORD type, LPARAM lParam)
......
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
@ stub GdipGetFontCollectionFamilyCount @ stub GdipGetFontCollectionFamilyCount
@ stub GdipGetFontCollectionFamilyList @ stub GdipGetFontCollectionFamilyList
@ stub GdipGetFontHeight @ stub GdipGetFontHeight
@ stub GdipGetFontHeightGivenDPI @ stdcall GdipGetFontHeightGivenDPI(ptr long ptr)
@ stdcall GdipGetFontSize(ptr ptr) @ stdcall GdipGetFontSize(ptr ptr)
@ stub GdipGetFontStyle @ stub GdipGetFontStyle
@ stdcall GdipGetFontUnit(ptr ptr) @ stdcall GdipGetFontUnit(ptr ptr)
......
...@@ -372,6 +372,7 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*); ...@@ -372,6 +372,7 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**); GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**);
GpStatus WINGDIPAPI GdipGetFontUnit(GpFont*, Unit*); GpStatus WINGDIPAPI GdipGetFontUnit(GpFont*, Unit*);
GpStatus WINGDIPAPI GdipGetFontSize(GpFont*, REAL*); GpStatus WINGDIPAPI GdipGetFontSize(GpFont*, REAL*);
GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont*, REAL, REAL*);
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*, GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
GpFontCollection*, GpFontFamily**); GpFontCollection*, GpFontFamily**);
......
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