The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Chestnut16438_D on November 02, 2006, 02:06:14 AM

Title: Change your in game font to any font that your computer has in the font folder!!
Post by: Chestnut16438_D on November 02, 2006, 02:06:14 AM
Ok..... This isn't really a script, but if you go into the script editor and slide down to the "main" script you will see $defaultfonttype = "Tahoma"..... All you have to do, is go into My Computer, and enter your local disk c: drive. In the next folder you'll see a folder that says "WINDOWS". Open it. The contents may be hidden, but their should be an option that allows you to access them. (If not, go to tools on your menubar and select folder options. From here click on the "view" tag. Scroll down until you find a option that says hidden files and folders. Show and Don't show. Click show, then reopen the windows folder I talked about earlier. When you have access to the folders in the windows folder open the fonts. In here you can view all the font on your computer. Find one you like and type it in place of the word Tahoma

Example:   $defaultfonttype = "Comic Sans MS"
Voila!! You have your favorite font for your RPG

Note: You can't use the words bold and italic in your font's name. Just leave that part out and type the rest.
Your welcome, and no credit needed. Any beginner could figure this out if I did!!
Title: Re: Change your in game font to any font that your computer has in the font fold
Post by: Sir Edeon X on November 02, 2006, 09:57:28 AM
Yup, that's right!
But you can even change the font from window to window inside your game.
Meaning you can have your menus with one font, the help with another and so on.
Just add:

self.contents.font.name = "Tahoma"
self.contents.font.size = 22

below the "self.contents = Bitmap.new(width - 32, height - 32)" in 'window' classes.
Title: Re: Change your in game font to any font that your computer has in the font folder!!
Post by: Chestnut16438_D on November 03, 2006, 01:03:27 AM
That's probably simpe for people like you, but as can tell, I have no clue how to do any of that!! I'm still a beginner :-[..... Oh well.....
Title: Re: Change your in game font to any font that your computer has in the font fold
Post by: Sir Edeon X on November 03, 2006, 08:47:28 PM
Very simple! ;D

For example, open the class Window_Status.
In the 'main'  function search for "self.contents = Bitmap.new(width - 32, height - 32)" and add:

self.contents.font.name = "Tahoma"
self.contents.font.size = 22

below it. Now, your status window will appear in Tahoma font in a size 22.
Title: Re: Change your in game font to any font that your computer has in the font folder!!
Post by: Blizzard on November 04, 2006, 01:55:29 AM
Just like Sir Edeon X said. (LOL! S.E.X.!)
You can use this in any of the standard Window_SOMETHING classes.
Title: Re: Change your in game font to any font that your computer has in the font folder!!
Post by: Chestnut16438_D on November 04, 2006, 08:32:15 PM
Cool! thanx guys, and I actually have a question for you sir edeon...
I f you wouldn't mind answering??
I was reading some of the posts, and I came upon one that involved a conversation about how you made a cutscene that runs before the title screen appears!!
This is something that I would like to have in my game, but I can't figure out how to insert the script correctly.
I know how to insert scripts, but you said to change a line in the main script

(1) Change the Main script so that after it begins in a new scene- Scene_Cutscene (change it after "Graphics.freeze").)

I don't understand this. I found where it is, but everytime I try to change something then there is an error.
I've tried replacing the $scene = Scene_Title.new with $scene = Scene_Cutscene, but that doesn't seem to work properly. If there is anything that you remember that would help me, please tell me.....
Title: Re: Change your in game font to any font that your computer has in the font folder!!
Post by: Blizzard on November 05, 2006, 04:24:52 PM
Actually it should work that way ($scene = Scene_Cutscene.new). You might want to take a look at my overworked credits script, now called Picture Movie Scene.

http://rmrk.net/index.php?topic=2054.0