Some Background
I have an application that currently uses the Courier New font for all textboxes per a project requirement. I now want to use the Consolas font as it is much easier to read and distinguish various differences. I want my application to install this font on my XP machines so that I don't have to do it manually. I have found numerous articles on installing fonts and I have that part working.
The Problem
The only piece that I am missing is putting information about the font into the registry so that it can be reused. (HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts). To add the font to the registry, I need to know the name of the font. I can get this information from the Title property of the font, but how do I read that?
- I have been reading about Alternate Data Streams and haven't found anything that appeared to be useful for anything except an Image file.
- I found information about some DSOFile.dll (or something like that) from Microsoft that allows you to view extended properties from Office-type documents.
Can someone point me in the right direction as to how to read this information from a file?
Thanks in advance!!




Reply With Quote