The AddFontResource function does NOT install a font file to C:\Windows\Fonts. It just makes a font temporarily available to the system.
To install a font, you can copy it to the C:\Windows\Fonts folder, then register it using the code found
here[
^].