Registering/unregistering is only for the current session, for the font to be loaded everytime you need to write some registry entries as you already know.
I didn't already know
. It seems to me like you would almost always want the fonts to be loaded everytime - not just for the current session. In fact, I can't think of a time when you wouldn't. Of course, I am not entirely sure what a "session" is either. So what registry keys do I need to add/adjust?
Have you tried unregistering the old font first?
No, but I'll try that. It looks almost like I don't have to call registerfont/unregisterfont in the font.dll at all. Is that the case? These fonts I am trying to install are for my app and I want them to be used permanently.
So it looks like I need to...
- unregister the old one
- copy the font file
- write some registry keys (think I saw this in another post somewhere)
- send the system font message
Is that right? Sorry for being a pain, but I am about to pull all my hair out over this. Seems like I am getting closer though.