Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.59 KB

GdipGetFontCollectionFamilyList.md

File metadata and controls

67 lines (44 loc) · 1.59 KB

Home

Function name : GdipGetFontCollectionFamilyList

Group: GDI+ Font - Library: gdiplus


Gets list of the font families contained in this font collection.


Code examples:

Custom GDI+ class

Declaration:

GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(
	GpFontCollection* fontCollection,
	INT numSought,
	GpFontFamily* gpfamilies[],
	INT* numFound
)
  

FoxPro declaration:

DECLARE INTEGER GdipGetFontCollectionFamilyList IN gdiplus;
	INTEGER   fontCollection,;
	INTEGER   numSought,;
	STRING  @ gpfamilies,;
	INTEGER @ numFound
  

Parameters:

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.


Return value:

Returns 0 on success.


Comments:

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.