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 !