I need to get the font name that corresponds to the font file name.
Ex:
The font file name ADOLESCE.TTF corresponds to the name Adolescent (True type). How do I get that name from the file?
Printable View
I need to get the font name that corresponds to the font file name.
Ex:
The font file name ADOLESCE.TTF corresponds to the name Adolescent (True type). How do I get that name from the file?
Hi randem,
Can you reverse engineer this: http://www.codeproject.com/useritems..._font_file.asp (noting that you want it from the file)
(I havn't looked at it btw)
Hey Bruce,
Yeah, I saw that. But he doesn't get the actual information from the file. I need to get unregistered font file names. If the font is not installed (in the registry) that app won't find a name for it. I may have to cheat and use that method anyway for now until I find the other way to do it like Windows Font View and other such programs. But they all seem to be written in C...
Yeah, I figured you'd done that ;) and probably peeked into the file format too. I wonder what font registration (installer) does. Similar to what you pointed out I guess.
Yeah, There are several tables and headers to look at and you know how unaccommodating VB is with pointers and such...
Hi Randem, did you try this?
http://vbnet.mvps.org/index.html?cod...uetypename.htm
Steve.
Hey Steve,
Great, That seems to be working for now. I think it may have a limitation to True Type Fonts but I will test that and it's way better than what I was going to do... Reading thru the registry.
Thanks!