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
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
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.
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.
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.
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
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.
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 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.
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.
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.
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
############################# 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
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 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