Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

I have a problem about changing the font in game

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

begin
  $fonttype = "Tahoma"
  $fontsize = 20
  # Prepare for transition
  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

That is my main script. When i change the font from there or even make it blank it always show the same font i'm using the ums by ccoa too.Do i need to put the font there instead of main?
 
Yes thanks that solved my problem.

I was searching for changing the font and on one of the demos i had from members it had it for a year or more had that in main.

Can you tell me were i can find all font's i can use?

I don't like the default one
 
you can use pretty much any font you have installed on your computer.
C:/Windows/fonts is usually the loacation of all of your installed fonts. You can always trawl the net and find other fonts which you like and install them for use too.

If you're gonna release a demo/game with a custom font, make sure you include it in the demo/game archive though as the player of your demo/game may not have that font installed.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top