Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
ReadWriteThink
- Newbie
- Posts: 2
- Joined: Tue Aug 02, 2016 4:12 am
-
Contact:
#1
Post
by ReadWriteThink » Tue Aug 02, 2016 4:23 am
I've been trying to figure out how to change the default font in my Ren'py game, to no avail. I've searched online and have done everything people are saying, but it's still not working. I downloaded a free to use font, copied it into the game folder and changed the font name in the options.py. I am certain it is the same name as the font file name and have uncommented it as well.
Code: Select all
## The file containing the default font.
style.default.font = "IndieFlower"
## The default size of text.
style.default.size = 36
However, it still says it can't find the font, even though it is right there in the game folder. Did I put the file in the wrong folder? Have I done something wrong? I've tried this with multiple fonts, even one somebody else has used in their Ren'py game, but none of them are working.
Last edited by
ReadWriteThink on Tue Aug 02, 2016 11:52 am, edited 1 time in total.
-
Iylae
- Regular
- Posts: 73
- Joined: Sat Jan 09, 2016 6:57 am
- Location: Cornwall, UK
-
Contact:
#2
Post
by Iylae » Tue Aug 02, 2016 5:53 am
Possibly, you're missing the file extension e.g.
Code: Select all
style.default.font = "IndieFlower.ttf"
If we are what we repeatedly do, then good coding is not an act, but a habit
-
ReadWriteThink
- Newbie
- Posts: 2
- Joined: Tue Aug 02, 2016 4:12 am
-
Contact:
#3
Post
by ReadWriteThink » Tue Aug 02, 2016 11:52 am
Thank you, I didn't even think of that. I should really stop trying to do things at 3am.
Users browsing this forum: Bing [Bot], Google [Bot]