So I need to add some fonts to my image while I’m deploying it. Copying the font to the windowsfolder is simple but it doesn’t automatically install the font for you unless you use the correct method. You have to copy them using the Shell object.
My VBS looks like this:
Const FONTS = &;H14&
Set objShell = CreateObject(“Shell.Application”)
Set objFolder = objShell.Namespace(FONTS)
objFolder.CopyHere \sccmSourceFilesFontsHappyfont1.ttf
objFolder.CopyHere \sccmSourceFilesFontsCheeseyfont2.pfm
objFolder.CopyHere \sccmSourceFilesFontsLocomotivefont1.pfm
Thanks to The Scripting Guy
UPDATE : It seems that the .pfm fonts still do not install when this script is started in a OSD