Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font list in windows

Status
Not open for further replies.

BM

Programmer
Apr 26, 2000
27
GB
Hi,
Does anyone know where windows stores it's
font list? I would like to print a sample of each font on my PC, is there a program around that does this already?

Thanks

Barry M
 
use the EnumFonts API function

int EnumFonts(
HDC hdc, // handle to DC
LPCTSTR lpFaceName, // font typeface name
FONTENUMPROC lpFontFunc, // callback function
LPARAM lParam // application-supplied data
);

the callback function has this prototype:
int CALLBACK EnumFontsProc(
CONST LOGFONT *lplf, // logical-font data
CONST TEXTMETRIC *lptm, // physical-font data
DWORD dwType, // font type
LPARAM lpData // application-defined data
);

To get a HDC use the GetDC API Function

Hope this helps, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top