Change the font of only the title

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.
Post Reply
Message
Author
elitehydra79
Newbie
Posts: 2
Joined: Mon Jul 16, 2018 2:32 pm
Contact:

Change the font of only the title

#1 Post 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

User avatar
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

#2 Post 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.

elitehydra79
Newbie
Posts: 2
Joined: Mon Jul 16, 2018 2:32 pm
Contact:

Re: Change the font of only the title

#3 Post by elitehydra79 »

Thank you so much...worked like a charm.

mega01man
Newbie
Posts: 1
Joined: Mon Oct 05, 2020 6:32 pm
itch: megax01xman
Contact:

Re: Change the font of only the title

#4 Post 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.

User avatar
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

#5 Post 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.

Post Reply

Who is online

Users browsing this forum: Google [Bot]