A question about fonts (500 points)

Does Visual Studio 2008 (VB) provide any methods for extracting font details and properties?

I know that I can use fontstyle to get "Regular", "Italis" etc.

What I am looking for is any methods for extracting such details as font family, font metrics, description, trademarks etc
Who is Participating?
Hmm I dont know of any libraries that read the font extensions, but here is a few links that might help

Font Specification

some C code that can read TTF header data
The font class exposes some details
to get a list of all installed fonts on the system you can use:
System.Drawing.Text.InstalledFontCollection c = new System.Drawing.Text.InstalledFontCollection();
foreach( System.Drawing.FontFamily f in c.Families)
   // query about each here

Open in new window

jindaleeAuthor Commented:
Thank you wht1986.

I can use the InstalledFontCollection to get some of the detail I have t get such as family and metrics. However, for the project upon whic I am working, these details are of less importance than details such as embedded descriptions, licences, trademarks, copyright etc.

Microsoft provides a tool that shows the sort of stuff I have to collect for the project. The tool is at http://www.microsoft.com/typography/PropertiesEditor.mspx. Unfortunately I cannot find anything on the MS sites that describe how to get at the information embedded in the font file.

The attached images show examples of the sort of stuff you can extract extract. (They are snapshots of the MS tool to which I refer.)
jindaleeAuthor Commented:
Thank you. The link yp coderproject does the trick. The author of that article nor only explains ttfs fonts but provides code, albeit in C that I'll need to translate.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.