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.

Font problems

I am having a problem with my font. I had to edit my main script so a CMS would work, but now everything written in the Lexia font has changed to Arial (except in the CMS). The name box font, set to Gabrielle, is working fine.

What could I do to fix this?

(And yes, I do have the Lexia font on my computer.)
 
Oops, sorry. Here is my Main script:

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

begin
  $fontface = "Lexia"
  $fontsize = 22
  # 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

I am using ccoa's UMS, as well. I have already changed the font line in that as well, to no avail.
 
Change
Code:
  $fontface = "Lexia"
  $fontsize = 22

To
Code:
 # Default Font
  $defaultfonttype = $fontface = $fontname = 
  Font.default_name = "Lexia"
  # Default Font Size
  $defaultfontsize = $fontsize = 
  Font.default_size = 22
 

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