Commit d5b8c9d8 authored by Adam Petaccia's avatar Adam Petaccia Committed by Alexandre Julliard

gdiplus: Implement GdipDeleteFontFamily.

parent e8e1d0f6
...@@ -218,3 +218,30 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name, ...@@ -218,3 +218,30 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name,
return Ok; return Ok;
} }
/*****************************************************************************
* GdipDeleteFontFamily [GDIPLUS.@]
*
* Removes the specified FontFamily
*
* PARAMS
* *FontFamily [I] The family to delete
*
* RETURNS
* SUCCESS: Ok
* FAILURE: InvalidParameter if FontFamily is NULL.
*
*/
GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily *FontFamily)
{
if (!FontFamily)
return InvalidParameter;
TRACE("Deleting %p (%s)\n", FontFamily, debugstr_w(FontFamily->FamilyName));
if (FontFamily->FamilyName) GdipFree (FontFamily->FamilyName);
if (FontFamily->tmw) GdipFree (FontFamily->tmw);
GdipFree (FontFamily);
return Ok;
}
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
@ stdcall GdipDeleteCustomLineCap(ptr) @ stdcall GdipDeleteCustomLineCap(ptr)
@ stub GdipDeleteEffect @ stub GdipDeleteEffect
@ stdcall GdipDeleteFont(ptr) @ stdcall GdipDeleteFont(ptr)
@ stub GdipDeleteFontFamily @ stdcall GdipDeleteFontFamily(ptr)
@ stdcall GdipDeleteGraphics(ptr) @ stdcall GdipDeleteGraphics(ptr)
@ stdcall GdipDeleteMatrix(ptr) @ stdcall GdipDeleteMatrix(ptr)
@ stdcall GdipDeletePath(ptr) @ stdcall GdipDeletePath(ptr)
......
...@@ -350,6 +350,7 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**); ...@@ -350,6 +350,7 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**);
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*, GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
GpFontCollection*, GpFontFamily**); GpFontCollection*, GpFontFamily**);
GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily*);
GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**); GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**);
GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat*); GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat*);
......
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