By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,244 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,244 IT Pros & Developers. It's quick & easy.

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

P: n/a
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 Douglas
Fort Collins, CO


Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
-----Original Message-----
I'm creating a web control library and I would like to have a Font propertythat 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 ahard time finding any information on the web.. Any advice / solution / urlwould be greatly appreciated.

Thanks in advance.
--
Jay Douglas
Fort Collins, CO


.

Nov 15 '05 #2

P: n/a
As a followup, you could also call a file listing method
from the Directory class... but both WMI & file commands
are admittedly lame...
-----Original Message-----
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
-----Original Message-----
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 Douglas
Fort Collins, CO


.

.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.