I'm trying to make a function that takes advantage of the font registry library in the Wiki. When I use the _LOADFONT function in the main module (not in a function/sub), I have no errors. If I try to use the exact same code but within a function, the program fails with saying an illegal function call on the line calling _LOADFONT. I've used PRINT on those lines to verify that the output is the exact same. The only thing that is failing is the _LOADFONT. Can it not be used in a function/sub? Surely, that can't be the case. Any help, fellas?
NEVER MIND! I figured it out. It was an issue of variables not being shared/passed to the function. Fixed it!