Commit ea323d13 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

gdiplus: Implement GdipNewPrivateFontCollection and GdipDeletePrivateFontCollection.

parent c04b7c5b
......@@ -789,12 +789,17 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamil
*/
GpStatus WINGDIPAPI GdipNewPrivateFontCollection(GpFontCollection** fontCollection)
{
FIXME("stub %p\n", fontCollection);
TRACE("%p\n", fontCollection);
if (!fontCollection)
return InvalidParameter;
return NotImplemented;
*fontCollection = GdipAlloc(sizeof(GpFontCollection));
if (!*fontCollection) return OutOfMemory;
(*fontCollection)->FontFamilies = NULL;
(*fontCollection)->count = 0;
return Ok;
}
/*****************************************************************************
......@@ -802,12 +807,17 @@ GpStatus WINGDIPAPI GdipNewPrivateFontCollection(GpFontCollection** fontCollecti
*/
GpStatus WINGDIPAPI GdipDeletePrivateFontCollection(GpFontCollection **fontCollection)
{
FIXME("stub %p\n", fontCollection);
INT i;
TRACE("%p\n", fontCollection);
if (!fontCollection)
return InvalidParameter;
return NotImplemented;
for (i = 0; i < (*fontCollection)->count; i++) GdipFree((*fontCollection)->FontFamilies[i]);
GdipFree(*fontCollection);
return Ok;
}
/*****************************************************************************
......
......@@ -225,7 +225,8 @@ struct GpStringFormat{
};
struct GpFontCollection{
GpFontFamily* FontFamilies;
GpFontFamily **FontFamilies;
INT count;
};
struct 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