Group: GDI+ Font - Library: gdiplus
GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(
GpFontCollection* fontCollection,
INT numSought,
GpFontFamily* gpfamilies[],
INT* numFound
)
DECLARE INTEGER GdipGetFontCollectionFamilyList IN gdiplus;
INTEGER fontCollection,;
INTEGER numSought,;
STRING @ gpfamilies,;
INTEGER @ numFound
fontCollection [in] Handle to FontCollection object.
numSought [in] Suggested number of font families in this font collection
gpfamilies [out] Pointer to an array that receives the list of names.
numFound [out] Pointer to an INT that receives the number of font families found in this collection. This number should be the same as the numSought value.
Returns 0 on success.
The interface of this function is some fuzzy. I do not think they really need numSought parameter to be supplied to the function. May be the idea is to give an option of retrieving only the top part of this list, which does not make sense either :)
Though anyway, call GdipGetFontCollectionFamilyCount to get the number of Font Families found in this collection.