I am fairly new to renpy and I have a problem..
I want to change the font of only the title that comes on the menu screen in bottom left corner but I am unable to do so...
Help me pleasee
Change the font of only the title
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.
-
- Newbie
- Posts: 2
- Joined: Mon Jul 16, 2018 2:32 pm
- Contact:
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Change the font of only the title
One way is to addelitehydra79 wrote: ↑Mon Jul 16, 2018 2:41 pm I am fairly new to renpy and I have a problem..
I want to change the font of only the title that comes on the menu screen in bottom left corner but I am unable to do so...
Help me pleasee
define gui.title_text_font = "NameOfYourNewFont.ttf"
in the Fonts and Font Size section in the gui.rpy
-----------
An other way is to set the line
define gui.show_name = True
in the basic section in options.rpy to False
define gui.show_name = False
This removes the title from the menu scene.
You can then add the title in your preferred font in a graphic editor to the
main_menu.png in the gui.folder
With this way you don't need to add a font to the game that you only are going to use this one time only, but it is more work if you later want to change anything in the title.
-
- Newbie
- Posts: 2
- Joined: Mon Jul 16, 2018 2:32 pm
- Contact:
Re: Change the font of only the title
Thank you so much...worked like a charm.
Re: Change the font of only the title
Hello, I know this is an old post. I just want to know where you find the line of code you mentioned.
I keep looking in the renpy documentation, and used the search function. I did not find it there.define gui.title_text_font = "NameOfYourNewFont.ttf"
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Change the font of only the title
The line is not in the code as it comes out of the box. Without the line the title will use the general text font.
You will however find
define gui.title_text_size
in the gui.rpy file
That could be a good place to place the font code as well (from the point of view of having things nicely organized).
I'm not sure if 'gui.title_text_font' is in the documentation, or where I first learned about it, but it does work.
Who is online
Users browsing this forum: Google [Bot]