You should use the Win32 EnumFontFamiliesEx API function. You call this function by passing a callback function that matches the type of EnumFontFamExProc . The callback function is called once for each font found by EnumFontFamiliesEx.
I would recommend using the Unicode version (EnumFontFamiliesExW), since I saw that the ascii version (EnumFontFamiliesExA) exhibits very strange behavior for East Asian fonts.
Related articles have sample code.
Joe gauterin
source share