win32gui.EnumFontFamilies

int = EnumFontFamilies(hdc, Family , EnumFontFamProc , Param )

Enumerates the available font families.

Parameters

hdc : PyHANDLE

Handle to a device context for which to enumerate available fonts

Family : string

Family of fonts to enumerate. If none, first member of each font family will be returned.

EnumFontFamProc : function

The Python function called with each font family. This function is called with 4 arguments.

Param : object

An arbitrary object to be passed to the callback function

Comments

The parameters that the callback function will receive are as follows:
PyLOGFONT - contains the font parameters
None - Placeholder for a TEXTMETRIC structure, not supported yet
int - Font type, combination of DEVICE_FONTTYPE, RASTER_FONTTYPE, TRUETYPE_FONTTYPE
object - The Param originally passed in to EnumFontFamilies