Archived

This topic is now archived and is closed to further replies.

thorpe

Enumerating

Recommended Posts

I need to know whether a certain font (Arial) is installed or not. There is a function called enumfonts though I haven''t got any documentation on it (my Visual C++ CD is in my other home) and I have never really enumerated anything (i don''t even know if i have to enumerate). How do I do it? Also, I''d like to know if the video device supports the display mode 800x600x8 or not. Thanks for your help. Johan Torp - http://www.destruction.nu

Share this post


Link to post
Share on other sites
I think you are pretty safe assuming that Arial is present on a Windows machine.

However, here''s how you enum fonts:

  
int FontProc(const LOGFONT *lplf, const TEXTMETRIC *lptm,
DWORD dwtype, LPARAM lpData)
{
// check lplf->FaceName

}

// start enumerating by:

EnumFonts(hdc, NULL, FontProc, 0);



Lookup EnumFonts online to get more/better information

Share this post


Link to post
Share on other sites
I''ve looked for online documentation several times but I have been unable to find it (I don''t really know what to search for). Do you have an address?

Johan Torp - http://www.destruction.nu

Share this post


Link to post
Share on other sites