04-04-2018 11:20 PM
I'm trying to programmatically install a custom font. The code to do this is almost there - see attachment.
I followed the instructions in this article.
There have been other discussions on this here and here; I don't believe it's been clearly solved; it's not as simple as placing the font file in the Windows Font folder; the article explains it well.
Unfortunately, I get an undefined error when I run the code. I am hoping someone here will take a look and realize something I'm overlooking to do.
Thanks in advance !
04-05-2018 09:21 AM
Not sure why that doesn't work, but ActiveX is not really the way to go unless it can't be avoided.
I'd try this (command line): https://stackoverflow.com/questions/21986744/how-to-install-a-font-programatically-c
Or .net, as in the attached VI (apparently, System.IO.File.Copy does install the font).