I am searching for a way to go about finding the generic face name (Sans-Serif, Serif, Monospace, Cursive, Fantasy) for a given font using the .NET framework. My language of preference is C#, but I've been writing source code for nearly 15 years, so if you can give me an example in any modern language, I can go about translating it, myself.
[Edit - Clarification]
I need a way to determine which of the generic font families (Sans-Serif, Serif, Monospace, Cursive, or Fantasy... and possibly even Symbol) any given System.Drawing.Font
object belongs to.
As an example, if I create a font from the following line of code:
System.Drawing.Font font = new System.Drawing.Font( "Serif", 12f, System.Drawing.GraphicsUnit.Point );
The resulting font would likely be the 12-point "Times New Roman" font. But I don't want "Times" or "New Roman" or even "Times New Roman", I need to know that it's in the "Serif" family.