Thanks for that piece of script. I do have questions in relation to it, though.
- Was the copy to c:\windows\fonts step handled in a different script or am totally overlooking it here?
- What script/software are you using here?
- If you were going to execute the same script for a set of 12 font variants, would you simply have 12 iterations in the “register font…” section, one for each font in the set.
The script looks like its AutoIT. You could use AutoIt to copy the fonts to the C:\Windows\Fonts folder. Then you could wrap the code segment Markus provided (as well as the copy) into a function and call the function using the font name as a function parameter / attribute. This would keep the script clean, simple, and reusable.