Enumerating
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
I think you are pretty safe assuming that Arial is present on a Windows machine.
However, here''s how you enum fonts:
Lookup EnumFonts online to get more/better information
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement