Good afternoon, dear forum users!

There is a bunch of fonts (.ttf, .otf). Programmatically install them:

  • I copy files to Windows\Fonts ,
  • I register values โ€‹โ€‹in the register,
  • I register through AddFontResource .

However, fonts in the system appear only after restarting Windows. Can I do something without rebooting?

PS: WM_FONTCHANGE send. Apparently, this is not enough. Do I need to call some other WinAPI function?

    1 answer 1

    Found a solution.

    I registered the source file in AddFontResource .

    If you register a file from the Windows \ Fonts directory, then everything is applied immediately.