Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Font Changer, A little snippet every RMer needs to have.
Dark Gaia
post Feb 27 2009, 03:44 AM
Post #1


Chaotic Good
Group Icon

Group: +Gold Member
Posts: 2,538
Type: Writer
RM Skill: Masterful




RPG Maker VX Font Changer
By Dark Gaia

Introduction:

Sick of seeing the same old VX font in every game you play or make? Want to add a bit of a unique touch to your game? This very simple snippet of code is something every RPG Maker VX user should have! It allows you to change the default font to any font you have installed on your computer, and any size you want, with an optional boldface.

Just make sure you package an installable version of any custom font you use inside your game!

Script:

CODE
############################
# RMVX Font Change #
####Snippet By Dark Gaia####

# Insert below "begin" in "Main".

Font.default_name = ["Primary Font","Secondary Font"]
#Replace these with names of fonts you wanna use. Secondary font is only used if primary is unaccessable by player's computer.
Font.default_size = 20
#Set the size of the font here. Default VX font uses 20.
Font.default_bold = false
#Set if font is bold here. true is yes, false is no.
Font.default_italic = false
#As above, but for making the font italic. Some fonts look better in italic.


Instructions:

1. Copy the script snippet into the script called "Main" in the RMVX script index. Paste it just below the line reading "begin".
2. Where it says "Primary Font", delete that and type in the name of the font you want to use. Do the same with Secondary Font as well, but note that the Secondary Font is only a backup. It will only be used if the Primary font is either uninstalled or unaccessable on the player's computer. It's suggested the Secondary Font is one which everyone has installed, such as Ariel.
3. Enter the size of the font on the second line. (Default is 20)
4. Finally, type 'true" or "false" on the final lines to choose if your font is bold/italic or not.

Compatibility:

Absolutely, positively, 100 percent guarunteed compatibility with any other script. I assure you this.

Screenshots:

None needed. After all, all it does is change the font RMVX uses in message windows.

Copyright:

Free to use, even in commercial projects. If you are using this and didn't script it yourself, please credit.


__________________________
Things I've made/written/developed:


Find out more and get the latest news at my website or Facebook
Go to the top of the page
 
+Quote Post
   
l33tpie 6
post Feb 27 2009, 04:00 AM
Post #2


Interesting, huh?
Group Icon

Group: Revolutionary
Posts: 706
Type: Developer
RM Skill: Intermediate




Nice to see this. Hopefully we'll get less newbie topics about changing fonts now!


__________________________
Visit the Team Gaia Forum today!



Featured project of RPG RPG Revolution! Click the red bar for more information!
Huge thanks to Coolio for the avatar!
Go to the top of the page
 
+Quote Post
   
DarkBolo
post Feb 27 2009, 07:57 AM
Post #3


Level 8
Group Icon

Group: Revolutionary
Posts: 126
Type: Mapper
RM Skill: Skilled




This script looks great. You should(might) add function for changing the color.
Go to the top of the page
 
+Quote Post
   
l33tpie 6
post Feb 27 2009, 01:24 PM
Post #4


Interesting, huh?
Group Icon

Group: Revolutionary
Posts: 706
Type: Developer
RM Skill: Intermediate




...but you can change colour in text boxes by simply typing \C[x]. X is replaced by a number corresponding to your colour.


__________________________
Visit the Team Gaia Forum today!



Featured project of RPG RPG Revolution! Click the red bar for more information!
Huge thanks to Coolio for the avatar!
Go to the top of the page
 
+Quote Post
   
Dark Gaia
post Feb 27 2009, 04:54 PM
Post #5


Chaotic Good
Group Icon

Group: +Gold Member
Posts: 2,538
Type: Writer
RM Skill: Masterful




Yeah, I felt that such a function was not needed as you can simply type the color changing code into each textbox you make. I probably won't be adding anything more to this snippet. An option to make the font italic would be stupid.


__________________________
Things I've made/written/developed:


Find out more and get the latest news at my website or Facebook
Go to the top of the page
 
+Quote Post
   
SuperMega
post Feb 27 2009, 06:34 PM
Post #6


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




Very nice work Dark Gaia. This I will use if I ever want to change my font.

I also have a suggestion: The ability to use Italics. It seems kind of pointless sure, but I think some fonts look better when they are italicized. It makes the game look more creative too.


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
Dark Gaia
post Feb 27 2009, 08:29 PM
Post #7


Chaotic Good
Group Icon

Group: +Gold Member
Posts: 2,538
Type: Writer
RM Skill: Masterful




Okay, I may consider adding it, but for now if you want italic fonts, just add this line directly under the line for turning boldface on and off:

Font.default_italic = false/true

EDIT: Added ability to make italic fonts into the script.


__________________________
Things I've made/written/developed:


Find out more and get the latest news at my website or Facebook
Go to the top of the page
 
+Quote Post
   
SuperMega
post Feb 27 2009, 09:15 PM
Post #8


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




Cool, thanks for the addition, Dark Gaia.


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
TalesOf_Fantasy
post Feb 28 2009, 04:16 AM
Post #9


Level 3
Group Icon

Group: Member
Posts: 42
Type: Artist
RM Skill: Skilled




TQ for the script!


__________________________



MZ Multimedia Studios current projcts:

Divine Fantasy
Entusia 'The Unlimited Sky'
Go to the top of the page
 
+Quote Post
   
Dark Gaia
post Mar 3 2009, 10:10 PM
Post #10


Chaotic Good
Group Icon

Group: +Gold Member
Posts: 2,538
Type: Writer
RM Skill: Masterful




Update:

You can get some cool fonts from www.dafont.com. Please make sure you include the font installable file in your game if you are using a custom, downloaded font, or at least make sure your secondary font is a one everyone has.


__________________________
Things I've made/written/developed:


Find out more and get the latest news at my website or Facebook
Go to the top of the page
 
+Quote Post
   
l33tpie 6
post Mar 3 2009, 10:44 PM
Post #11


Interesting, huh?
Group Icon

Group: Revolutionary
Posts: 706
Type: Developer
RM Skill: Intermediate




You can also try www.fantasyfonts.com for some good fantasy fonts.


__________________________
Visit the Team Gaia Forum today!



Featured project of RPG RPG Revolution! Click the red bar for more information!
Huge thanks to Coolio for the avatar!
Go to the top of the page
 
+Quote Post
   
Michael
post Mar 4 2009, 03:48 AM
Post #12


Level 33
Group Icon

Group: Revolutionary
Posts: 838
Type: Writer
RM Skill: Skilled




Great!, even tho I already knew that. Also, you can change your text by using this!
CODE
Font.default_name = ["Tw Cen MT Condensed Extra Bold"]

You can also change the text to something else other then what I have there. If you want, open Microsoft Word and copy a font from there that's what I do.
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Mar 4 2009, 07:14 AM
Post #13


The past tense
Group Icon

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




Oh common darkgaia, sad to say, your not accomplishing anything. Font changing is a BUILT IN FEATURE.
Check the help file once in a while:
[Show/Hide] RMVX HELP > FONT

Font
The font class. Font is a property of the Bitmap class.

SuperclassObject
Class MethodsFont.new([name[, size]])
Creates a Font object.

Font.exist?(name)
Returns TRUE when the specified font exists within the system.

Propertiesname
The font name. Include an array of strings to specify multiple fonts to be used in a desired order.

font.name = ["Myriad", "Verdana"]

In this example, if the higher priority font Myriad does not exist within the system, the second choice Verdana will be used instead.

The default is ["Verdana", "Arial", "Courier New"]. (RGSS2)

size
The font size. The default is 20. (RGSS2)

bold
The bold flag. The default is FALSE.

italic
The italic flag. The default is FALSE.

shadow (RGSS2)
The flag for shadow text. The default is TRUE. When enabled, a black shadow will be drawn to the bottom right of the character.

color
The font color (Color). Alpha values may also be used. The default is (255,255,255,255).

Alpha values are also used when drawing shadow text. (RGSS2)

Class Propertiesdefault_name
default_size
default_bold
default_italic
default_shadow (RGSS2)
default_color
Change the default values for each component, to be applied to each new Font object.

Font.default_name = ["Myriad", "Verdana"]
Font.default_bold = true



__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   
SuperMega
post Mar 4 2009, 11:39 AM
Post #14


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




QUOTE (enix2 @ Mar 4 2009, 09:14 AM) *
Oh common darkgaia, sad to say, your not accomplishing anything. Font changing is a BUILT IN FEATURE.
Check the help file once in a while:
[Show/Hide] RMVX HELP > FONT

Font
The font class. Font is a property of the Bitmap class.

SuperclassObject
Class MethodsFont.new([name[, size]])
Creates a Font object.

Font.exist?(name)
Returns TRUE when the specified font exists within the system.

Propertiesname
The font name. Include an array of strings to specify multiple fonts to be used in a desired order.

font.name = ["Myriad", "Verdana"]

In this example, if the higher priority font Myriad does not exist within the system, the second choice Verdana will be used instead.

The default is ["Verdana", "Arial", "Courier New"]. (RGSS2)

size
The font size. The default is 20. (RGSS2)

bold
The bold flag. The default is FALSE.

italic
The italic flag. The default is FALSE.

shadow (RGSS2)
The flag for shadow text. The default is TRUE. When enabled, a black shadow will be drawn to the bottom right of the character.

color
The font color (Color). Alpha values may also be used. The default is (255,255,255,255).

Alpha values are also used when drawing shadow text. (RGSS2)

Class Propertiesdefault_name
default_size
default_bold
default_italic
default_shadow (RGSS2)
default_color
Change the default values for each component, to be applied to each new Font object.

Font.default_name = ["Myriad", "Verdana"]
Font.default_bold = true


This is very true, however, I find it easier to use a code snippet like the one Dark Gaia posted then go through the above process. Plus, its more noob friendly.


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
l33tpie 6
post Mar 5 2009, 01:48 AM
Post #15


Interesting, huh?
Group Icon

Group: Revolutionary
Posts: 706
Type: Developer
RM Skill: Intermediate




Also, Enix2, by the amount of topics we get daily about basic RMVX things, I don't think too many people read through the help file.


__________________________
Visit the Team Gaia Forum today!



Featured project of RPG RPG Revolution! Click the red bar for more information!
Huge thanks to Coolio for the avatar!
Go to the top of the page
 
+Quote Post
   
Dark Gaia
post Mar 5 2009, 10:08 PM
Post #16


Chaotic Good
Group Icon

Group: +Gold Member
Posts: 2,538
Type: Writer
RM Skill: Masterful




As I said when I posted the snippet, it is a very basic piece of code which most RMers take for granted. However, some newbies have trouble finding a way to change the font, so I have posted the code that they need to use, so that they just copy and paste a ready made snippet.

I am not intending to break new ground with this at all Enix.


__________________________
Things I've made/written/developed:


Find out more and get the latest news at my website or Facebook
Go to the top of the page
 
+Quote Post
   
captainregal
post Apr 26 2009, 12:28 AM
Post #17


Level 5
Group Icon

Group: Member
Posts: 68
Type: Event Designer
RM Skill: Advanced




############################# RMVX Font Change #####Snippet By Dark Gaia##### Insert below "begin" in "Main". Font.default_name = ["Primary Font","Secondary Font"]#Replace these with names of fonts you wanna use. Secondary font is only used if primary is unaccessable by player's computer. Font.default_size = 20#Set the size of the font here. Default VX font uses 20. Font.default_bold = false#Set if font is bold here. true is yes, false is no. Font.default_italic = false#As above, but for making the font italic. Some fonts look better in italic.


This post has been edited by captainregal: Apr 26 2009, 12:29 AM
Go to the top of the page
 
+Quote Post
   
monkeyboy654
post Jan 4 2011, 11:07 PM
Post #18



Group Icon

Group: Member
Posts: 2
Type: Event Designer
RM Skill: Intermediate




aha, i didnt use your code to be honest however i did get some awesome new fonts from the links biggrin.gif
good job lol
question i put forward to you.
im using chest pop_ups and menu enhancement which both show the new txt along with the starting screen, however the normal txt boxes dont change the font.
i wouldnt exactly call my self a nooby as i have learnt over the past 2 months MANY things which even im impressed wiiith hehe.
however can u help me out? not very good with things like this tehe.
cheers
Go to the top of the page
 
+Quote Post
   
InfinateX
post Jan 25 2011, 05:18 PM
Post #19


Level 10
Group Icon

Group: Revolutionary
Posts: 151
Type: Developer
RM Skill: Advanced




This script doesn't need to be so long...

Drop the useless comments. ~Kread


__________________________
I Support:






Legal Stuff:

If you use any of my resouces please credit me. I put © on all of them so you pretty much have to anyways.


Click Here

Some of you may have seen what I had posted in this spot before but now it just says that the request was fufilled on March 28, 2011 :)


I bet nobody knows how I did this:

If you think you figured it out PM me and if your correct you will earn this valueble skill... or you can just brag about it :D


Current Projects:

At rmrk.net/index.php/topic,42236.new.html#new and omega-dev.net/forums/showthread.php?tid=1086&pid=21328
Go to the top of the page
 
+Quote Post
   
TheBen
post Jan 25 2011, 05:58 PM
Post #20


Intolerable Noob
Group Icon

Group: Revolutionary
Posts: 344
Type: Developer
RM Skill: Beginner




Huh. Always wondered how to do that.

Anyways, useful script.


__________________________
QUOTE
Great people talk about IDEAS
Average people talk about THINGS
Small people talk about OTHER PEOPLE

- A plaque on a BBQ restaurant in VA
Go to the top of the page
 
+Quote Post
   

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: 18th June 2013 - 03:33 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker