Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
- Posts: 28
- Joined: Fri Mar 24, 2017 10:27 am
I wanted to change the game's default font to Capsuula, a font I downloaded online. It's installed on my computer, but I don't know how to get it into renpy nor do I know how to edit the script so that the default font is Capsuula.
Any help is appreciated
- Eileen-Class Veteran
- Posts: 1299
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
Capsuula is free for commercial use, so there's no problems using it, but I cannot find information on embedding.
I'll assume distribution is allowed, but you will want to check and you may be required to include the creators name in your credits.
Anyway, you simply need to copy the .Capsuula.ttf file to somewhere inside your game folder.
Then, in options.rpy, or maybe gui.rpy, find the line that says define something something font = "fontname.ttf"
Change the font name to capsuula.ttf and you're done. Remember Ren'Py is case-SeNsItIvE
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
- Posts: 73
- Joined: Tue Aug 25, 2015 3:42 pm
- Location: Mt Holly, NJ
In addition to what Imperf3kt said, make sure that your file is indeed a .ttf and not a .otf. Ren'Py is pretty finicky about the latter and often doesn't recognize it. I nearly tore my hair out over that some time back.