I am writing a PowerShell script to install TrueType and OpenType fonts in Windows. The script is adding a registry entry in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts and copies the font-file to C:\Windows\Fonts. If I don't do it like this and only copy the file to the font directory Windows automatically installs the font in the user space instead (C:\Users\UserName\AppData\Local\Microsoft\Windows\Fonts).
I can see that the few OpenType fonts that I have on my computer and that have been installed by Windows have a string name like "FontName (TrueType)" in the registry, even though they are OpenType fonts?? Wouldn't it make more sense if the name was "FontName (OpenType)"?
Is there a standard around this?