5 Replies - 702 Views - Last Post: 10 October 2013 - 02:26 PM Rate Topic: -----

#1 evildead9000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 10-November 10

Get Font Details from a font - File version, Type, Company etc.

Posted 05 February 2013 - 09:38 AM

Basically, I would like to get the same information from the details tab of a font file. (when you right-click a font file, go to properties, and then the details tab.)

I've Googled around and can't seem to find anything! All I find is how to change the font or font style; bold, italics, etc. I also searched the forums here and couldn't find anything.

I wish I had some code to post as an example, but I don't even know where to begin.

Any help would be greatly appreciated.

Is This A Good Question/Topic? 0
  • +

Replies To: Get Font Details from a font - File version, Type, Company etc.

#2 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3741
  • View blog
  • Posts: 13,085
  • Joined: 12-December 12

Re: Get Font Details from a font - File version, Type, Company etc.

Posted 05 February 2013 - 10:41 AM

This link looks very good. It requires installing a .dll.

Objects which might be named Font, SystemFont are not useful, as you have discovered, as they only reveal properties such as Bold, Italic, etc.. You need to treat the font as a file and extract its extended properties.

There is a quirk that is accounted for in the linked page: if the extended property doesn't exist, and you try to refer to it, it generates an error. So the code generates the propertie(s) if they don't exist.

BTW I still have a small question with this code. That is, will it give you access to a font file in the same way as a standard file, or is it a system file that requires enhanced permissions to read(?). I'm sure you will discover :)

This post has been edited by andrewsw: 05 February 2013 - 10:45 AM

Was This Post Helpful? 0
  • +
  • -

#3 evildead9000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 10-November 10

Re: Get Font Details from a font - File version, Type, Company etc.

Posted 05 February 2013 - 11:29 AM

This is just what I was looking for.

Thank you for the quick response!
Was This Post Helpful? 0
  • +
  • -

#4 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3741
  • View blog
  • Posts: 13,085
  • Joined: 12-December 12

Re: Get Font Details from a font - File version, Type, Company etc.

Posted 05 February 2013 - 11:43 AM

View Postevildead9000, on 05 February 2013 - 11:29 AM, said:

This is just what I was looking for.

Thank you for the quick response!

No problem. Good luck.
Was This Post Helpful? 1
  • +
  • -

#5 evildead9000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 10-November 10

Re: Get Font Details from a font - File version, Type, Company etc.

Posted 05 February 2013 - 01:00 PM

I'm trying to click the "+" button to say the post was helpful. However, the webpage just scrolls to the top and it doesn't accept the click.
Was This Post Helpful? 0
  • +
  • -

#6 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3741
  • View blog
  • Posts: 13,085
  • Joined: 12-December 12

Re: Get Font Details from a font - File version, Type, Company etc.

Posted 10 October 2013 - 02:26 PM

View Postevildead9000, on 05 February 2013 - 08:00 PM, said:

I'm trying to click the "+" button to say the post was helpful. However, the webpage just scrolls to the top and it doesn't accept the click.

I've experienced that before as well. Refreshing the page occasionally helped but often I would just have to wait until a later time. But your plus has been accepted, thank you :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1