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
本贴来自国际rpgmaker官方论坛作者:Magixe处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/custom-fonts-tutorial.63451/