The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => Topic started by: creepy on November 28, 2005, 06:11:17 PM

Title: How I can change the font in RMXP?
Post by: creepy on November 28, 2005, 06:11:17 PM
I dont know if this belong here. But how i can change the font
of the messages event in the RMXP
Title: How I can change the font in RMXP?
Post by: haloOfTheSun on November 28, 2005, 07:11:54 PM
Go to the Scripts, go to the Main script at the bottom of the list, and in line 9 or so, it says $fontface = "Arial" or something like that. Just change the name of the font inside the quotations. Look through some other scripts as well and change the name of the font there too.
Title: How I can change the font in RMXP?
Post by: creepy on November 28, 2005, 10:55:26 PM
Ok thanks man
Title: Hmm..
Post by: Cryforequanimity on December 19, 2005, 01:48:19 AM
Hm, I've wondered how to do that for a while, and now that I know how, I pose another question to you:

Can you put custom fonts in the game, or can you only use the fonts that are included in the game's data...or in your computer?...or in the game folder that you include with your game?

If you can use custom fonts, and you need to include the file in your materials...what fold do you put it in?
Title: How I can change the font in RMXP?
Post by: Alakazam on December 19, 2005, 02:56:53 PM
Head to google and and look up fonts then once you have some you like go to C:, windows folder, fonts folder, place 'em in there.

The Us ver does not have the code so you have to put that in yourself, it's probably been posted before but meh ill post it in here.

Code: [Select]

#==============================================================================
# ** Main
#------------------------------------------------------------------------------
#  After defining each class, actual processing begins here.
#==============================================================================

begin
  # Prepare for transition
  $defaultfonttype = $fontface = $fontname = Font.default_name = "Maiandra GD"
$defaultfontsize = $fontsize = Font.default_size = 22
  Graphics.freeze
  # Make scene object (title screen)
  $scene = Scene_Title.new
  # Call main method as long as $scene is effective
  while $scene != nil
    $scene.main
  end
  # Fade out
  Graphics.transition(20)
rescue Errno::ENOENT
  # Supplement Errno::ENOENT exception
  # If unable to open file, display message and end
  filename = $!.message.sub("No such file or directory - ", "")
  print("Unable to find file #{filename}.")
end

-----

Title: How I can change the font in RMXP?
Post by: Cryforequanimity on December 19, 2005, 03:57:53 PM
Cool, thanks for that...I wouldn't have know...I guess what I was asking is that once I have these font files in my computer, I'll be able to see them in my game, but if someone else downloads my game that doesnt' have that font, will their computer be able to recognize it as well?

I would think that I'd have to include it in the game's recources folder.