title: How do I get the name of the Font Family given the font file?
body: <p>I have a set of font files with unpredictable filenames, so I can't deduce the real "Font Family" name from the file name. I need to therefore read the font metadata to extract the real "Font Family" name, in order to render this font file. I'm in C#.NET 4.0 WinForms.</p>
  
  <p>I've seen the function <code>GetFontInformation</code> but I can't seem to find the P/Invoke headers for the same. All I have is the <a href="http://www.codeproject.com/KB/GDI/xfont.aspx" rel="nofollow">C++ version</a> which is honestly hard to figure out. Any ideas?</p>
  
  <p>The reason I cannot use the <code>PrivateFontCollection</code> class to parse through a font file for me, is that these are <strong>OTF</strong> fonts and .NET/GDI+ only supports <strong>TTF</strong> fonts!</p>