Hans Leidekker : gdiplus: Implement GdipGetFontCollectionFamilyCount and GdipGetFontCollectionFamilyList .
Alexandre Julliard
julliard at winehq.org
Mon Nov 24 09:16:53 CST 2008
Module: wine
Branch: master
Commit: 80a54ca53f8fc1526210f2023b62713223552c4c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=80a54ca53f8fc1526210f2023b62713223552c4c
Author: Hans Leidekker <hans at codeweavers.com>
Date: Mon Nov 24 10:22:17 2008 +0100
gdiplus: Implement GdipGetFontCollectionFamilyCount and GdipGetFontCollectionFamilyList.
---
dlls/gdiplus/font.c | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 829dc57..ba2f1d8 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -854,12 +854,13 @@ GpStatus WINGDIPAPI GdipPrivateAddMemoryFont(GpFontCollection* fontCollection,
GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount(
GpFontCollection* fontCollection, INT* numFound)
{
- FIXME("stub: %p, %p\n", fontCollection, numFound);
+ TRACE("%p, %p\n", fontCollection, numFound);
if (!(fontCollection && numFound))
return InvalidParameter;
- return NotImplemented;
+ *numFound = fontCollection->count;
+ return Ok;
}
/*****************************************************************************
@@ -869,13 +870,19 @@ GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(
GpFontCollection* fontCollection, INT numSought,
GpFontFamily* gpfamilies[], INT* numFound)
{
- FIXME("stub: %p, %d, %p, %p\n", fontCollection, numSought, gpfamilies,
- numFound);
+ INT i;
+
+ TRACE("%p, %d, %p, %p\n", fontCollection, numSought, gpfamilies, numFound);
if (!(fontCollection && gpfamilies && numFound))
return InvalidParameter;
- return NotImplemented;
+ for (i = 0; i < numSought && i < fontCollection->count; i++)
+ {
+ gpfamilies[i] = fontCollection->FontFamilies[i];
+ }
+ *numFound = i;
+ return Ok;
}
GpStatus WINGDIPAPI GdipNewInstalledFontCollection(
More information about the wine-cvs
mailing list