gdiplus: Implement GdipNewPrivateFontCollection and GdipDeletePrivateFontCollection.

This commit is contained in:
Hans Leidekker 2008-11-24 10:21:55 +01:00 committed by Alexandre Julliard
parent c04b7c5b0f
commit ea323d1349
2 changed files with 16 additions and 5 deletions

View File

@ -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;
}
/*****************************************************************************

View File

@ -225,7 +225,8 @@ struct GpStringFormat{
};
struct GpFontCollection{
GpFontFamily* FontFamilies;
GpFontFamily **FontFamilies;
INT count;
};
struct GpFontFamily{