Custom Fonts Tutorial

Have you ever wanted to use your own font for your game, and then had no idea how to do it? Fear not, I was once in the same boat! It is quite simple. Okay.


Step 1. Find/create your font. Make sure it's in a TTF (TrueTypeFont) format; a .ttf file.


Step 2. Copy and paste this file into your "fonts" folder in your game project folder.


Step 3. Open gamefont.css in your editing program of choice, like Notepad++ or TextWrangler. I use Editra.


Step 4: Change the existing code to this:


@font-face {
    font-family: GameFont;
    src: url("yourfonthere.ttf");
}


Step 5. Replace yourfonthere.ttf with your font's file name.


Step 6. Save and close gamefont.css.


Step 7. Make sure that if you are using Yanfly's Core Engine (or any other plugin that changes your game's font) that your default font is GameFont. If not, you're all set.


Step 8. Playtest your game to see your font in action!


WARNING: If you aren't using Word Wrap, then your wrapping in your text boxes might be messed up depending on your font's width. But if you use Word Wrap you're fine.


Step 9. Watch your beautiful game come to life!


--Magixe
I can't find the gamefont.css file?
I can't find the gamefont.css file?
I'm not sure if you still need help. You find the .css file in the same folder where the font is located. So navigate to your game and go into "fonts". There should be a file named gamefont.
I'm not sure if you still need help. You find the .css file in the same folder where the font is located. So navigate to your game and go into "fonts". There should be a file named gamefont.
It's not there.
It's not there.
Sorry, I realized that this is MV.
Sorry, I realized that this is MV.
Correct. For MZ the setting is right in the editor, Database -> System 2
I'm using a .otf Fontfile. So far it seems to work fine, is there anything I should be aware of?
As far as i understand, this method changes the default game font. But what if i need to write only one word with specific font, and the rest - keep as it is? Is it possible to somehow apply special font just for one word in MV?
@ElvenNeko You're asking in a thread that's a tutorial specifically for changing the entire game font using an external file (written by someone who hasn't been on the site for 7 years).

Have you Googled for plugins that give font commands?
@ElvenNeko You're asking in a thread that's a tutorial specifically for changing the entire game font using an external file (written by someone who hasn't been on the site for 7 years).

Have you Googled for plugins that give font commands?
When i googled, i found this post and simillar videos. I would perfer to avoid using plugins because they tend to not work in web (android) version.

Original thread: https://forums.rpgmakerweb.com/threads/custom-fonts-tutorial.63451/