Fonts in Ren'py

Use this forum to help develop your game-making skills, and get feedback on writing, art, music, or anything else you've created that isn't attached to a game in progress.
Posts: 33
Joined: Wed Dec 07, 2011 7:18 pm

Fonts in Ren'py

#1 Post by purple_pockets » Thu Dec 22, 2011 7:59 pm

I went through the tutorial game, and found that you could change the font of the text, but saw nothing about how to do so. Do you have to define what font you wish to use? If so, please tell me the script.

p.s. If this isn't supposed to be posted here or something, please let me know. I don't want to violate any rules. :D
A teenager's favorite phrase:
No sé y no me importa.
Translation: I don't know and I don't care

User avatar
Posts: 97
Joined: Thu Dec 01, 2011 2:05 am
Projects: I Will Hold Your Hand

Re: Fonts in Ren'py

#2 Post by Pugfarts » Thu Dec 22, 2011 8:03 pm

There should be a spot in your 'options' script that looks like this;

## These let you customize the default font used for text in Ren'Py.

## The file containing the default font.

style.default.font = "AveriaSerif-Regular.ttf"
That's not the default font, that's one I added. All you have to do is put the font file in your game folder and then put the file name there.


Who is online

Users browsing this forum: No registered users