Web Control Library - Displaying Font Properties in a tree view form.

  • Thread starter Thread starter Jay Douglas
  • Start date Start date
J

Jay Douglas

I'm creating a web control library and I would like to have a Font property
that expands out the different font elements (i.e. Color, Size, Bold, etc)
in the property window. I have no idea on how to do this and I'm having a
hard time finding any information on the web.. Any advice / solution / url
would be greatly appreciated.

Thanks in advance.
 
Jay,

Depending on your environment, you could use Windows
Management Instrumentation (WMI) and access the
Win32_FontInfoAction object. There's a property
called "File" that contains the rough filename from the
Windows\Fonts directory and a "FontTitle" that you'd
think would contain a clean font name but actually just
seems blank at first glance (it could be an array or
something more complex, I'm just checking via
Scriptomatic, so it's hard to say).

Is this running on one machine? Do you want the fonts
available on whichever machine is running the app or
fonts available on a server?


Jerry Negrelli
Senior Software Engineer
Data Scientific Corporation
 
As a followup, you could also call a file listing method
from the Directory class... but both WMI & file commands
are admittedly lame...
 
Back
Top