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 not showing for anything, how do I add to main?

exactly as the latter, when I try to see a message from an event I cant see the text at all, I have the font installed, and it is in the project folder, so how do I add it to main so it becomes the default font?
 

poccil

Sponsor

Use the following code:

Code:
Font.default_name=['Your Font Name','Arial', 'Courier New']

Replace "Your Font Name" with the name of the font.  Two other names are given here to allow the game to fall back to other fonts in case the user doesn't have the custom font installed, because it is not recommended to require a custom font in order to play the game.
 

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