Having trouble with fonts

screenshot stuff.png


Been trying to change my game's font, but it hasn't been working. Using a script from other threads talking about changing fonts has only disabled the custom menu stuff I had. I have the custom font in a folder and everything. Can somebody tell me what I'm missing?
All you need for setting the font is to put this just above main at the bottom
Ruby:
Font.default_name = ["put font one here", "put font two here"] # Edit as you see fit.
Font.default_size = 22 # Edit as you see fit.
All you need for setting the font is to put this just above main at the bottom
Ruby:
Font.default_name = ["put font one here", "put font two here"] # Edit as you see fit.
Font.default_size = 22 # Edit as you see fit.
Nope, still nothing.
Have you checked that the font file itself is .ttf
This is the most common reason for a font not showing up.

This may not help, but I always left in the names of the default fonts in the script and the fonts themselves in the folder e.g.

1677740451269.png


The wording of the script suggests that it will be looking for at least one other font.
Have you checked that the font file itself is .ttf
This is the most common reason for a font not showing up.

This may not help, but I always left in the names of the default fonts in the script and the fonts themselves in the folder e.g.

View attachment 254724

The wording of the script suggests that it will be looking for at least one other font.
Yes, the file is .ttf.

I'm at my wit's end trying to figure what's bugging this out.
the file is .ttf.

My only other thought is that you're not putting in the right name.
The file name is not (normally) the name of the font.
When you double click on the font file a window should come up and in the top left it will say what the font name is.
1677761044182.png


Hold up
***
Do you have a folder in your project called Fonts?
That's where font files go.
So other than having the folder, putting the ttf font file in there, and setting the correct name, there should be nothing preventing you from having that font display.
My only other thought is that you're not putting in the right name.
The file name is not (normally) the name of the font.
When you double click on the font file a window should come up and in the top left it will say what the font name is.
View attachment 254737

Hold up
***
Do you have a folder in your project called Fonts?
That's where font files go.
So other than having the folder, putting the ttf font file in there, and setting the correct name, there should be nothing preventing you from having that font display.
As I've said, I've done everything. Made a folder for the fonts, and I've just now tried to see if I was putting the name in wrong like you said. I was not. Still doesn't work.
Then you have to be doing something wrong.
Can you post a screenshot of the project folder and your script list where the font is specified?
1677775487573.png
1677775509643.png
1677775680857.png
1677775614966.png
Then you have to be doing something wrong.
Can you post a screenshot of the project folder and your script list where the font is specified?
View attachment 254751View attachment 254752View attachment 254754View attachment 254753

script shot.png
font folder.png
ok so can I assume you don't have any other scripts that use the Font settings?
Do a search.
Press CTRL+SHIFT+F
type in Font.default
What do you get?

Also I see that you have several scripts below main. they should not be affecting the results.

Didn't think to ask, is the font not showing up for the title screen or the message text?
ok so can I assume you don't have any other scripts that use the Font settings?
Do a search.
Press CTRL+SHIFT+F
type in Font.default
What do you get?

Also I see that you have several scripts below main. they should not be affecting the results.

Didn't think to ask, is the font not showing up for the title screen or the message text?
ok thank you so much, that let me finally change it; it was one of the Main scripts. Thanks again.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/having-trouble-with-fonts.155430/