November 1998
Intermediate to advanced
1520 pages
37h 53m
English
Font enumeration is the process of obtaining from GDI a list of all fonts available on a device. A program can then select one of these fonts or display them in a dialog box for selection by the user. I’ll first briefly describe the enumeration functions and then show how to use the ChooseFont function, which fortunately makes font enumeration much less necessary for an application.
In the old days of Windows, font enumeration required use of the EnumFonts function:
EnumFonts (hdc, szTypeFace, EnumProc, pData) ;
A program could enumerate all fonts (by setting the second argument to NULL) or just those of a particular typeface. The third argument is an enumeration callback function; the fourth argument is ...
Read now
Unlock full access