How to change the font of the default title text in the main menu.
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.
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.
-
- Regular
- Posts: 38
- Joined: Sat Apr 21, 2018 3:46 am
- Contact:
How to change the font of the default title text in the main menu.
So whenever you create a new Ren'py game, by default the title screen will have the name of the game written in the bottom right corner. Is there any way to change the font used for the main title?
Re: How to change the font of the default title text in the main menu.
Yes. In screens.rpy you can see:
So you can find a string style main_menu_title: in that file, and add to the block something like font "mononoki-Regular.ttf". So it would look like:
You can also change the placement of the title etc. Just edit the screen "main_menu".
PS. Put the font file in "game" folder. (Or in some subfolder. Then it's better to mention the path, like: font "gui/fonts/mononoki-Regular.ttf".)
Code: Select all
if gui.show_name:
vbox:
style "main_menu_vbox"
text "[config.name!t]":
style "main_menu_title"
text "[config.version]":
style "main_menu_version"
Code: Select all
style main_menu_title:
properties gui.text_properties("title")
font "mononoki-Regular.ttf"
PS. Put the font file in "game" folder. (Or in some subfolder. Then it's better to mention the path, like: font "gui/fonts/mononoki-Regular.ttf".)
-
- Regular
- Posts: 38
- Joined: Sat Apr 21, 2018 3:46 am
- Contact:
Re: How to change the font of the default title text in the main menu.
How do I change the color of the title screen text?
Re: How to change the font of the default title text in the main menu.
Likewise, add to the style block:
You can find all the info about styles here:
https://www.renpy.org/doc/html/style.html
https://www.renpy.org/doc/html/style_properties.html
Also check the properties of screen elements:
https://www.renpy.org/doc/html/screens.html
Code: Select all
style main_menu_title:
# ...blah blah blah...
color "#FDA"
https://www.renpy.org/doc/html/style.html
https://www.renpy.org/doc/html/style_properties.html
Also check the properties of screen elements:
https://www.renpy.org/doc/html/screens.html
Re: How to change the font of the default title text in the main menu.
PS. Or you can add those properties directly to the text:
and so on.
Code: Select all
text "[config.name!t]":
color "#6A3"
Who is online
Users browsing this forum: Bing [Bot]