Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [Scripting]How to Change Font in VX Game, *Update* + Some Features to decorate Font~
woratana
post Jan 21 2008, 08:21 PM
Post #1


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




How to Change Font in VX Game
by Woratana

Introduction
When I tried making the VX game in Trial, I don't feel like the font that comes with game (UmePlus Gothic).
(I don't hate it, but I just prefer other font.)

And finally I found way to do, so I want to share this with anyone who want to use other font in RMVX game~

(It's same solution as when you change font in RMXP. You can skip this tutorial if you how to do that already. laugh.gif )
Solution
First, open Script Editor (F11) and go to "Main" (It's the latest script).

Place this script:
CODE
Font.default_name = "Font_Name"
Font.default_size = Font_size

You can place it anywhere before this line:
CODE
$scene = Scene_Title.new

(I like to put it after begin, but it's not matter you put it before or after begin)

Replace Font_Name with Name of the font
Replace Font_size with the size of font you want

For example, I want to change font to Tahoma and size 20
CODE
Font.default_name = "Tahoma"
Font.default_size = 20


Some screenshot when you changed the font:




something I've to tell you more is in Main, you will found this script
CODE
unless Font.exist?("UmePlus Gothic")
  print "UmePlus Gothic フォントが見つかりません。"
  exit
end

This will check if the computer has font "UmePlus Gothic". If not, the game will close.
So, when you changed the font, you may want to delete those 4 lines.

==========================
Some Features to decorate Font
It's similar to the features in RMXP. But I want to share in case someone didn't know about that wink.gif

The place to put these scripts are same as when you change the font.
CODE
Font.default_bold = true/false

Make the bold text

CODE
Font.default_italic = true/false

Make the italic text

CODE
Font.default_shadow = true/false

Make the text with shadow. << When you start game, the shadow automatically = true.
(BB Code cannot make the shadow text happy.gif )
^ RMXP don't have Shadow, so this will not work in XP

CODE
Font.default_color = Color.new(Red, Green, Blue, Opacity)

Change text color
e.g. Default color when game starts is...
CODE
Font.default_color = Color.new(255, 255, 255, 255)


You can find RGB color from this page:
http://web.njit.edu/~kevin/rgb.txt.html
Take a look at column R;G;B Dec.

===========================

I hope this tutorial will help laugh.gif


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Rickster090
post Mar 23 2008, 11:58 AM
Post #2



Group Icon

Group: Member
Posts: 4
Type: Event Designer
RM Skill: Beginner




humm i've tryied this but this dosn't work


__________________________
My Projects ......

Blackfire : The Riya Chronicles. Averall Progress 2% (made in Rmvx)
Scripts included....
Weapon Unleash by Dargor
Map Name Popup by Dargor
KGC_DayNight system
sideview battle system by Claimh (looking to change to a ABS)
Skill Shop for RMVX Ver 3.1 By Nechigawara Sanzenin


please if anyone knows where i can get a ABS script for RMVX please email me at rickster090@hotmail.co.uk or PM me


Go to the top of the page
 
+Quote Post
   

Posts in this topic
- woratana   [Scripting]How to Change Font in VX Game   Jan 21 2008, 08:21 PM
- - SeeYouAlways   Hey, thank you so much for the submission! I h...   Jan 22 2008, 04:46 AM
- - darkkyros   Thanks! This really helped me.   Jan 22 2008, 06:32 PM
- - Xyster   yay, I can finally change the text, which was real...   Jan 23 2008, 04:27 PM
- - Dethecus   Not working for me =\ When I try to change it...   Jan 25 2008, 10:11 AM
- - SeeYouAlways   Hmm, tell us what font you are using.   Jan 25 2008, 05:36 PM
- - Dethecus   Trying to use Tahoma as the tutorial says. *edit*...   Jan 25 2008, 11:37 PM
|- - neclords   This Is Very Cool.. I Like it!   Jan 26 2008, 08:17 AM
|- - Klasher   Yay, very helpfull , Thanks   Apr 11 2008, 10:32 AM
- - Magdreamer   I think UmePlus Gothic goes very well with RMVX.   Jan 26 2008, 09:30 AM
- - Gilvs   I have Rpg maker XP but i't in wierd lettering...   Jan 27 2008, 09:09 AM
|- - woratana   QUOTE (Gilvs @ Jan 27 2008, 08:16 AM) I h...   Jan 27 2008, 10:03 AM
- - lahandi   I hope you dont mind if I asked a question Can w...   Feb 14 2008, 02:19 AM
- - Rickster090   can i put the font file into a folder in my game s...   Mar 23 2008, 01:27 AM
- - ERZENGEL   @Rickster: You can create a folder called Fonts in...   Mar 23 2008, 02:08 AM
- - Rickster090   yh i've don that and i've downloaded a new...   Mar 23 2008, 02:15 AM
- - puppeto4   Most likely "BLACKNIT" is the file names...   Mar 23 2008, 02:44 AM
- - Rickster090   YES!!!!!!! thank you...   Mar 23 2008, 03:00 AM
- - woratana   Updated!!! - Add code to change defau...   Mar 23 2008, 10:29 AM
- - woratana   You can try this way too http://www.rpgrevolutio...   Mar 23 2008, 12:02 PM
- - amaziah   is there a way to change the color of the font in ...   Mar 26 2008, 12:44 AM
- - woratana   For the message box, Type \c[color ID] to ch...   Mar 26 2008, 12:53 AM
- - Zinos666   Here's the font style I'm using and I don...   Mar 31 2008, 10:06 AM
- - woratana   I can't see any problem with it either   Mar 31 2008, 12:39 PM
- - Apkx24   my rpg maker vx doesnt have Font.default_name.... ...   Apr 2 2008, 04:17 PM
- - woratana   You've to add that line, it's not in norma...   Apr 2 2008, 05:06 PM
- - EvenAngels   Oh wow. I was thinking of changing the font in my ...   Apr 4 2008, 12:39 AM
- - griva001   Is there a way to use diferent types of fonts in e...   May 12 2009, 09:40 PM
- - liteleaf   Thank you sooooooooo much!!! I've ...   Jun 16 2012, 12:59 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 01:41 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker