Custom font loading problems

So I've been trying to load my own custom font for a while. I've followed many guides online, as well as actually gotten a few fonts working. But I've seem to noticed that not all fonts are supported, at least after a lot of testing, and I was hoping to find out why. 

The current font I'm trying to use Circo (link to font http://www.dafont.com/circo.font ) Has been impossible for me to load. I've tried all kinds of things from renaming the actual font file, to checking and looking at the actual font name from within the file, but haven't gotten anything to work. 


My current setup for loading the font is 

Spoiler
13e4de4f8e.png



So far the only way I've been able to get the font to load correctly is by using an incorrect IE based format (EOT). (I did this by converting the font into all possible font types, and then testing each one. (I used this site to convert it btw http://www.font2web.com/)

Spoiler
dbb28ebee6.png





But from what I've read this format shouldn't even work on chrome (which is what MV runs off if I'm not mistaken), and has LOTS of limitations. So I'd rather not use something that just seems to work now without a reason for it too, and instead find a solution. I have no idea if its how fonts are loaded or not, but I'd love to have some insight as to why this isn't working, and if there is a possible fix and or workaround (that doesn't just work when it shouldn't.) 


Any help is really appreciated. 
Are there any messages in the console regarding the font? It looks like it's loaded fine, but then again it doesn't look like you tell any Windows or anything to actually use that font, so that might be part of it. 
You also need to register the font via JavaScript, as using it inside the canvas doesn't actually cause the browser (even local play is in fact a Chrome instance) to load the font.


There are multiple plugins, that can be used to load the font, one of which is linked in my signature.
Are there any messages in the console regarding the font? It looks like it's loaded fine, but then again it doesn't look like you tell any Windows or anything to actually use that font, so that might be part of it. 



Well I am loading the font in and running it. As that's how I'm testing if its working or not... if this is what you mean. There aren't any console messages tho.

 

Spoiler
64ac8a24de.png



Don't mind the random stuff, it was to just test it if changes, as I run the drawStatusName function inside an update function.

You also need to register the font via JavaScript, as using it inside the canvas doesn't actually cause the browser (even local play is in fact a Chrome instance) to load the font.


There are multiple plugins, that can be used to load the font, one of which is linked in my signature.



Register the font via Javascript? What exactly do you mean by this? I also just noticed your font script, so I would like to know what exactly it does to fix this problem.  Like I've said previously, I've gotten other fonts to work before, but this one (and a few others.) If I can simply just "register" it, and that fixes the problem then this helps my case a lot! (haven't tested but will soon)

EDIT*

Lavra I actually noticed the way I had gotten fonts to work in the past was loading them (similar to your plugin.)  I added my font object to it, and it loaded fine! 

 

Spoiler
29c0ef4ef8.png



My question now is I've noticed you load it via Graphics.loadFont, I'd like to assume that's a better way to load the font. Would I be assuming correctly? And why is it you have to load it this way vs CSS. 

Again, thanks for the help you've already provided, this is just to get more information as to why this stuff works.  
Well its been a few days since I've had it working. Anything left to share here would be explanations as why you need to do some of this stuff. Thanks everyone for your help! I think this can be closed (if even needed to be closed.)
_createFontLoader is called by loadFont, which also dynamically edits the stylesheet included with the game. I expected plugin users to not want to edit a css file in addition to using the plugin, so i wrote it that way.

Original thread: https://forums.rpgmakerweb.com/threads/custom-font-loading-problems.63707/