gdiplus: Implement GdipGetFontCollectionFamilyCount and GdipGetFontCollectionFamilyList.
This commit is contained in:
parent
2b8c6fe4db
commit
80a54ca53f
|
@ -854,12 +854,13 @@ GpStatus WINGDIPAPI GdipPrivateAddMemoryFont(GpFontCollection* fontCollection,
|
||||||
GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount(
|
GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount(
|
||||||
GpFontCollection* fontCollection, INT* numFound)
|
GpFontCollection* fontCollection, INT* numFound)
|
||||||
{
|
{
|
||||||
FIXME("stub: %p, %p\n", fontCollection, numFound);
|
TRACE("%p, %p\n", fontCollection, numFound);
|
||||||
|
|
||||||
if (!(fontCollection && numFound))
|
if (!(fontCollection && numFound))
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
return NotImplemented;
|
*numFound = fontCollection->count;
|
||||||
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
@ -869,13 +870,19 @@ GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(
|
||||||
GpFontCollection* fontCollection, INT numSought,
|
GpFontCollection* fontCollection, INT numSought,
|
||||||
GpFontFamily* gpfamilies[], INT* numFound)
|
GpFontFamily* gpfamilies[], INT* numFound)
|
||||||
{
|
{
|
||||||
FIXME("stub: %p, %d, %p, %p\n", fontCollection, numSought, gpfamilies,
|
INT i;
|
||||||
numFound);
|
|
||||||
|
TRACE("%p, %d, %p, %p\n", fontCollection, numSought, gpfamilies, numFound);
|
||||||
|
|
||||||
if (!(fontCollection && gpfamilies && numFound))
|
if (!(fontCollection && gpfamilies && numFound))
|
||||||
return InvalidParameter;
|
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(
|
GpStatus WINGDIPAPI GdipNewInstalledFontCollection(
|
||||||
|
|
Loading…
Reference in New Issue