Install Fonts Like Windows Explorer Right Click

  • Thread starter Thread starter KenKrugh
  • Start date Start date
K

KenKrugh

Guest
I need to emulate what happens when you right click a font file in Windows Explorer and select "Install as shortcut." This is the same thing as viewing a font with the Windows Font Viewer, turning on the "Use shortcut" button and hitting the "Install" button.

I've seen a bunch of code on this forum but I'm not sure what pieces I'd need. I saw this post that seems to indicate that I'll need to use the AddFontResource API and add an entry to registry (so the font's available next time they log on), which seems to make sense. BUT, they also appear to be copying the font to the fonts folder, which I don't want to do. I want to leave the font resource file where it is and have a shortcut that shows in the Windows\Fonts folder, which is the result of the install methods I describe above.

Is there, perhaps, documentation somewhere that describes what APIs are being used with the above describe installation methods?

Many thanks,
Ken

Continue reading...
 
Back
Top