Font selection and detection
I am using VS2005, and have a form with a WebBrowser control which is used to display incoming information to the user from a server.
Part of the incoming information is a "Font Name", which is received as a text string. Making the HTML display the message sent from the server, using the font name that the server sends, is not a difficult task but the entire concept of using, selecting, and validating fonts is an entire new programming area that I have literally had no experience with.
1) I would like to limit choices of fonts allowed to be "decent" in the terms of semi-human-readable. In other words, if the server decides to send a font that is along the lines of Wingdings or Symbol or something else thats not "human friendly", I want to detect that and change it to another basic name/style.
2) As well, the font name that is being sent may not be installed on the users machine so I would have to switch that to something else.
The server gets these "messages" to pass along from the same client-side program, and that uses a generic FontDialog control to supply what font name to use for that particular message. Can the dialog control be restricted to use say, "System Fonts"... and is a "System Font" one that has come with windows, or does it also include any other fonts that the user has installed?
I would hate to have to manually code for every possible font out there because for sure, I will miss some and utimately end up having a displayed message that is just plain ugly.
I would deeply appreciate any suggestions on this area. I have tried searching the forums, google, etc... and have not spotted anything that fits within this area. VS2005's help file is so full of information that trying to drill down into an area that I think is right, turns out not to be right.... and the frustration factor is really starting to get to me. *chuckles* as I pull hair out by the roots.
Thanks kindly in advance for any assistance you can provide!

