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.
4 Replies - 124 Views - Last Post: 05 February 2013 - 01:00 PM
#1
Get Font Details from a font - File version, Type, Company etc.
Posted 05 February 2013 - 09:38 AM
Replies To: Get Font Details from a font - File version, Type, Company etc.
#2
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
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
#3
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!
Thank you for the quick response!
#4
Re: Get Font Details from a font - File version, Type, Company etc.
Posted 05 February 2013 - 11:43 AM
#5
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.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|