The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Terra on December 05, 2009, 11:07:06 PM

Title: [Resolved] Custom Font, help
Post by: Terra on December 05, 2009, 11:07:06 PM
Okay, I need some help here. Is there a way to like edit the script a little so I can use whatever Font I want in my game? Thanks.
Title: Re: Custom Font, help
Post by: modern algebra on December 05, 2009, 11:18:20 PM
Go into Main and underneath "Graphics.freeze" insert

  Font.default_name = "Times New Roman"

Where Times New Roman is an example, whatever font you want. Remember to include the font if you share your game though.

Also, if you wanted, you could set up a hierarchy of fonts that would depend on which fonts the player has already installed. To do so, rather than just "Times New Roman", you would list them in an array from most preferred to least preferred, so like:

["Courier New", "Times New Roman", "Arial"]

in that case it would use Courier New if the player had that font, otherwise it would use Times New Roman, and if the player doesn't have that it would use Arial.
Title: Re: Custom Font, help
Post by: Terra on December 06, 2009, 10:44:17 AM
That's great and all for regular fonts. But I mean i have my own font I downloaded, and I type it in and it doesn't work, no font shows up. I's there a specific folder the font has to be in for it work?

[Edit]

Nvm, I got it.
Title: Re: [Resolved] Custom Font, help
Post by: Hepaticade on January 18, 2010, 10:16:29 PM
What is the range of Text you can use?
It is only Limited to Courier New,Times New Roman and Arial?
Title: Re: [Resolved] Custom Font, help
Post by: modern algebra on January 19, 2010, 01:37:00 AM
No, you can use any fonts that are installed on the computer. Though, if you share your game, they have to have the font to. Putting fonts into an array like that is a good safety measure if you share your game with someone who doesn't know how to install fonts - you can put the ones you want, and then common ones below it just in case.