Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved] Custom Font, help

Started by Terra, December 05, 2009, 11:07:06 PM

0 Members and 1 Guest are viewing this topic.

Terra

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.
QuoteYou get busy Livin', or get busy Diein'... That's god damn right.
- Ellis Redding, (Morgan Freeman) Shawshank Redemption
QuoteThey say evil prevails when good men fail to act, what they oughta' say is... Evil prevails.
- Yuri Orlov, (Nicholas Cage) Lord of War

modern algebra

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.

Terra

#2
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.
QuoteYou get busy Livin', or get busy Diein'... That's god damn right.
- Ellis Redding, (Morgan Freeman) Shawshank Redemption
QuoteThey say evil prevails when good men fail to act, what they oughta' say is... Evil prevails.
- Yuri Orlov, (Nicholas Cage) Lord of War

Hepaticade

What is the range of Text you can use?
It is only Limited to Courier New,Times New Roman and Arial?

modern algebra

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.