Programmatically install a font in Windows

What trick is making the font file copied to the font directory and then added using AddFontResource, available after rebooting?

+3
source share
2 answers

This MSDN page has this to say:

This function sets only the font for the current session. When the system restarts, the font will not be present. To install the font even after restarting the system, the font must be specified in the registry.

I believe you need a key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

+3
source

I had the same problem in the last few days, and every solution I found created different problems.

, , . pastebin:

#

0

Source: https://habr.com/ru/post/1711161/


All Articles