Changing Font Runtime Error

This is embarrassing...

Well, another problem that I am sure is a hard one to fix that I do not know how to fix. I was following a tutorial on how to change the font for your game. I tried using a custom font, and I got a runtime error. Screenshots are posted below. I was wondering if anyone has the solution for this. Thanks!
If you disable those two lines, can you launch without error?

I don't remember with Ace - do you need to have a Fonts folder inside your project and save your font files in there? I have a funny feeling you do. Also, the name of the font might be incorrect. The font file has one name, but when you double click on it, it shows a different name. I think it's the name that shows when you double click that you need to enter here. Can you open up your font file (double-click on it) and post a screenshot of that? Correct case might be important.
If you disable those two lines, can you launch without error?

I don't remember with Ace - do you need to have a Fonts folder inside your project and save your font files in there? I have a funny feeling you do. Also, the name of the font might be incorrect. The font file has one name, but when you double click on it, it shows a different name. I think it's the name that shows when you double click that you need to enter here. Can you open up your font file (double-click on it) and post a screenshot of that? Correct case might be important.

I did indeed make a fonts folder inside my project and I can launch the game just fine without those two lines of code.

Here is the screenshot...
Okay, the case might be the issue. Try changing it to VCR OSD Mono (in your script, you have all upper case - MONO). See if that makes a difference.
Okay, the case might be the issue. Try changing it to VCR OSD Mono (in your script, you have all upper case - MONO). See if that makes a difference.

That did not work as well.
What if you take out the [ and ] around the font name? I know it should probably be there, but I don't have my laptop with me to check either the documentation or test it in a project of my own.

Did you look at the documentation - F1? It might list some useful information.
What if you take out the [ and ] around the font name? I know it should probably be there, but I don't have my laptop with me to check either the documentation or test it in a project of my own.

Did you look at the documentation - F1? It might list some useful information.

I took out the brackets and it still did not work. I will check the documentation.
I looked at the documentation and noticed that I may have to make a new font object with this format:

Font.new([name[, size]])

Since I am new to Ruby, I do not know if I need to delete any of this code accept to replace name and size...

@Shaz
It looks like its correct except for the font name. you have VCR OSD MONO the font is called VCR OSD Mono.
He already tried that and said it didn't work.

You don't need to make a new font object.

Try
Code:
["VCR OSD Mono (OpenType)"]
He already tried that and said it didn't work.

You don't need to make a new font object.

Try
Code:
["VCR OSD Mono (OpenType)"]

Alright. A new problem arose and I am kind of angry now. I woke up and checked my game but when I went to open the project file it said unexpected file format.
That could explain why you were having issues. A file (now maybe more files) are corrupt. You need to be able to make a new project and try copying over your project files to find what is corrupt.
Unless this is to do with the font thing. You could also try removing all the font files from the project folder and starting it up.
That could explain why you were having issues. A file (now maybe more files) are corrupt. You need to be able to make a new project and try copying over your project files to find what is corrupt.
Unless this is to do with the font thing. You could also try removing all the font files from the project folder and starting it up.

It turns out the entire game was corrupted. I just went ahead and deleted it. It wasn't much that I lost either way and I can just make it again. It is unfortunate but I will still try to find a way for custom fonts.

EDIT: I got the game back by making a new project and overwriting the old project... Why must the game engine be so bad to me!
He already tried that and said it didn't work.

You don't need to make a new font object.

Try
Code:
["VCR OSD Mono (OpenType)"]

Still did not work.
Where is your project saved? Don't put it in any of the Windows folders (Program Files, My Documents, etc) - Windows will do stuff to the files. And don't put it in any folders that sync online, so no steam cloud, no dropbox, whatever.
Where is your project saved? Don't put it in any of the Windows folders (Program Files, My Documents, etc) - Windows will do stuff to the files. And don't put it in any folders that sync online, so no steam cloud, no dropbox, whatever.

I will put the folder on my desktop. But how do I get it out of the steam cloud?
I think it's a steam setting - I avoid Steam, so can't help you with that one. Sorry.
The default directory should be My Documents.
When you have vx ace open there is a gear icon next to the play button. Click on it. It will show all the projects you have.
Select your project and select Load, then delete from cloud.
This by itself should not have caused any problems.
Okay, this time it did not crash, but now the font is not showing up.

@Roninator2
@Shaz
And the font folder and font files are still there?
The entry in Main is still as you originally set it?

I download the font and it works fine for me.
Code:
Font.default_name = ["VCR OSD Mono"] # Edit as you see fit.
Font.default_size = 22 # Edit as you see fit.
Time New Roman
Times.PNG

VCR OSD Mono
vcr.PNG

Original thread: https://forums.rpgmakerweb.com/threads/changing-font-runtime-error.87820/