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.

Change Fonts

Add into Main

Code:
Code:
Font.default_name = aString
Font.default_size = anInteger
Font.default_bold = aBoolean
Font.default_italic = aBoolean
Font.default_color = Color.new(r,g,b,a)

Change def normal_color in Window_Base to:

Code:
Code:
def normal_color
  return Font.default_color (r,g,b,a)
end
by Yeynide
So does aString mean the name of the font, (i.e njnaruto), anInteger the size
(i.e 18). Color.new mean the colours (i.e 255,255,255,255.) What is the default bold and italic for RMXP? When I delete line 2-3, it's still in the original font. How to I fix this? Please help, if so, special thanks for you.:yes:
Thanks in advance
(Sasuke446) XD
 
What are you using as the font? It should be something like:
Code:
Font.default_name = "My Font"
# or
Font.default_name = ["My Font", "MS PGothic"]
The ["Font", "MS PGothic"] bit is a failsafe for missing fonts. When a font or character from the font is missing, RMXP will use the next font in the array.
 

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