Changing in game notify text font withouth changing the overall out-of-game font?

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
User avatar
Helyees
Regular
Posts: 152
Joined: Tue Mar 08, 2016 3:14 pm
Projects: Panzer Hearts
Contact:

Changing in game notify text font withouth changing the overall out-of-game font?

#1 Post by Helyees »

Hi all,

I have a specific font in the game menus, but I dont think it fits in the in game notify screens. I would like to have this small notify message with the same text font as the other text in the game screen. Is this possible?

I know changing the gui.interface_font does the trick, but I do not want to change the out-of-the game main menu font! :D

Code: Select all

## The font used for out-of-game text.
define gui.interface_font = "TannenbergFett.ttf"
It tried to add something like this to the Gui.rpy without any effect:

Code: Select all

define gui.notify_text_font = "Cardo-Bold.ttf"
Image

wish you all the best! :)

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2400
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Changing in game notify text font withouth changing the overall out-of-game font?

#2 Post by Ocelot »

You can always edit notify screen style directly in screens.rpy .

Find style notify_text: there and add font "Cardo-Bold.ttf" to style block.
< < insert Rick Cook quote here > >

User avatar
Helyees
Regular
Posts: 152
Joined: Tue Mar 08, 2016 3:14 pm
Projects: Panzer Hearts
Contact:

Re: Changing in game notify text font withouth changing the overall out-of-game font?

#3 Post by Helyees »

Hmm, nearly there... :D
How should the line be constructed?

Code: Select all

style notify_text = "Cardo-Bold.ttf"
This does not work? :idea:

User avatar
Helyees
Regular
Posts: 152
Joined: Tue Mar 08, 2016 3:14 pm
Projects: Panzer Hearts
Contact:

Re: Changing in game notify text font withouth changing the overall out-of-game font?

#4 Post by Helyees »

This did the trick :D

Code: Select all

style notify_text:
    font "Cardo-Bold.ttf"
case closed, >>>><thank you Ocelot!! :D

Post Reply

Who is online

Users browsing this forum: No registered users