Page 1 of 1

Change the font of only the title

Posted: Mon Jul 16, 2018 2:41 pm
by elitehydra79
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 :D

Re: Change the font of only the title

Posted: Tue Jul 17, 2018 12:00 am
by Per K Grok
elitehydra79 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 :D
One way is to add

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.

Re: Change the font of only the title

Posted: Wed Jul 18, 2018 11:39 am
by elitehydra79
Thank you so much...worked like a charm.

Re: Change the font of only the title

Posted: Mon Oct 05, 2020 6:47 pm
by mega01man
Hello, I know this is an old post. I just want to know where you find the line of code you mentioned.
define gui.title_text_font = "NameOfYourNewFont.ttf"
I keep looking in the renpy documentation, and used the search function. I did not find it there.

Re: Change the font of only the title

Posted: Tue Oct 06, 2020 4:32 pm
by Per K Grok
mega01man wrote: Mon Oct 05, 2020 6:47 pm Hello, I know this is an old post. I just want to know where you find the line of code you mentioned.
define gui.title_text_font = "NameOfYourNewFont.ttf"
I keep looking in the renpy documentation, and used the search function. I did not find it there.

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.